Sublime Forum

Error no 2 No such file or directory:

#1

what does this mean and how do i fix it. also all my text is white,
[Errno 2] No such file or directory: ‘/usr/local/bin/python3.5’
[cmd: [’/usr/local/bin/python3.5’, ‘-u’, ‘’]]
[dir: /Applications/Sublime Text.app/Contents/MacOS]
[path: /Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.6/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin]

0 Likes

#2

You have a very specific build system that wants to run python 3.5 but you only have 3.6 and 3 7 in your path.

Select the default “python” build system in the “build with” command.

0 Likes

#3

Am facing same problem here can you explain the solution pls.@FichteFoll
Thanks

The Error
[Error 2] The system cannot find the file specified
[cmd: [u’python’, u’-u’, u’C:\\Users\\new\\Desktop\\Python\\p.1.py’]]
[dir: C:\Users\new\Desktop\Python]
[path: 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)\Windows Live\Shared\C:Python27\C:Python\Scripts;C:\Users\new\AppData\Local\Programs\C:\Users\new\AppData\Local\Programs\Python]

0 Likes

#4

You are missing a few semi colons in your path setting. I suggest looking up the path environment variable in some tutorial, if you’re at loss about this.

Also, you should definitely use ST3.

0 Likes

#5

ST3 isnt compartible with python 2.7.14, is it?

0 Likes

#6

ST3’s internal Python runtime is 3.3. However, you can hook up a build system to whatever you like, including an external 2.7 runtime.

0 Likes

#7

ok.
but still cant get past original problem!

0 Likes

#8

@TheLibero what @FichteFoll meant is that your %PATH% is not set up correctly, because you’re missing at least two semicolons, the symbol for delimiting a path. Below is an excerpt on how it should look:

... C:\Program Files (x86)\Windows Live\Shared;\C:Python27;\C:Python\Scripts ...
                                              ^~~         |
                                                          ^~~ missing semicolons 

Note that you’re missing more than two semicolons.

1 Like

#9

To get rid of this error you can try using os.listdir() function to check that at least python sees the file exists or not.

0 Likes