I’m new to Sublime text, new to Python and pretty rusty when it comes to programming in general. I’m familiar with VBA (macros for excel) and SQL. I downloaded Sublime text.
I entered four lines of code:
[code]#!/usr/bin/env python3
print (“hello, world!”)
[/code]
and I’m getting this message:
[quote]The system cannot find the file specified
[cmd: [u’python’, u’-u’, u’’]]
[dir: C:\Windows\system32]
[path: C:\Program Files (x86)\HP SimplePass 2011\x64;C:\Program Files (x86)\HP SimplePass 2011;;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;c:\Program Files (x86)\Common Files\Roxio Shared\DLLShared;c:\Program Files (x86)\Common Files\Roxio Shared\12.0\DLLShared;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Intel\Services\IPT;C:\Program Files (x86)\Common Files\Intuit\QBPOSSDKRuntime;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files\Microsoft SQL Server\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn;C:\Program Files\Microsoft SQL Server\110\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\110\Tools\Binn\ManagementStudio;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies;C:\Program Files (x86)\Microsoft SQL Server\110\DTS\Binn]
[Finished][/quote]
I have no idea how I broke “Hello, World!” and I have no idea why the error is calling out programs in the path like QuickTime or Intuit (that’s quickbooks). Frankly I’m lost…
My system specs are an intel i3 with Windows 7 home. I have installed Java 3.3.
As a side: I’ve also tried IdleX, DrPython and Eclipse with PyDev. The first two were awful and the last was fine until I wanted to run something. It couldn’t ever run the code. I digress.
I just need help figuring out how to get Sublime Text 2 to read the Python code without throwing that error. I’m guessing it’s a problem with subdirectories, but then again, it’s only a guess.
On a last note, does anybody know where I can find an actual “getting started with Sublime Text 2” for Python. I found a couple, but they already assume that I know the user interface. I had never even heard of it until I was looking for a great Python editor. I know that I enter code in the editor, and then, I think I go to tool --> then Build. I haven’t found anyone to tell me if this is correct or not. I guess it’s assumed that if you made it this far then you know what you’re doing…Grrr. That’s how new I am to this…
Thanks to anyone and everyone who helps in advance!
EDIT UPDATE: As of this edit, I have uninstalled and reinstalled both sublime text 2 and Python 3.3. The error message remains the same. I’m wondering if I need to point the editor towards a file in Python. I’m not finding much luck on search engines. Most problems have a specific error and most of them are tied to probles with syntax or subdirectories.
I’ve also tried running a single line “Hello, World!” and removing the shebang line. I STILL get the same error. for some reason Sublime Text can’t find Python.