Sublime Forum

Sublime Text 4 (4107) with Python 3.9.1 (Miniconda)

#1

Hello all,

I have installed Sublime Text 4 (4107) with Python 3.9.1 (Miniconda).
Now when I want to execute the Python code directly (CTRL + SHIFT + B), I get an error message.
What could be the reason for this. Does Sublime Text 4 (4107) already support Python 3.9.1.
Add Miniconda to my PATH environment variable is activated.

System: Windows 21H1, Python 3.9.1 (Miniconda), Sublime Text 4 (4107)

Best regards

0 Likes

#2

What kind of an error message do you get ? Example screenshots are helpful if you can post them

0 Likes

#3

I get this error message:

[WinError 2] Das System kann die angegebene Datei nicht finden
[cmd: [‘py’, ‘-u’, ‘C:\Users\Test\Downloads\test.py’]]
[dir: C:\Users\Test\Downloads]
[path: C:\PROGRAM FILES\DELL\DW WLAN CARD;C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\WINDOWS\SYSTEM32\WINDOWSPOWERSHELL\V1.0;C:\WINDOWS\SYSTEM32\OPENSSH;C:\PROGRAM FILES (X86)\INTEL\INTEL® MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES\INTEL\INTEL® MANAGEMENT ENGINE COMPONENTS\DAL;C:\PROGRAM FILES (X86)\NVIDIA CORPORATION\PHYSX\COMMON;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Users\Test\miniconda3;C:\Users\Test\miniconda3\Library\mingw-w64\bin;C:\Users\Test\miniconda3\Library\usr\bin;C:\Users\Test\miniconda3\Library\bin;C:\Users\Test\miniconda3\Scripts;C:\Users\Test\AppData\Local\Microsoft\WindowsApps;C:\Users\Test\AppData\Local\Programs\MiKTeX\miktex\bin\x64]
[Finished]

0 Likes

#4

Sublime Text supports all versions of external python setups.

It uses the py python launcher app on Windows, which should be located in C:\Windows directory by default.

According to your error message, this file is missing. Thus ST doesn’t know what to start.

Does Minicoda ship with such a launcher app?

If not you’d need to add a symlink named “py.exe” in any directory which is registered to %PATH% or modify the build system to run “python.exe” instead. It seems the required path to it (“C:\Users\Test\miniconda3\Library\bin”) is already present on %PATH%.

Note: Running python apps via default build system calls won’t won’t enable you to do inputs. (The most frequent asked question here in the forum)

3 Likes

#5

Thank you for your repsonse.
I’m not sure if Miniconda comes with such a launcher app.
Can you explain in more detail what I need to do to set up a symlink?

0 Likes

#6

The solution was to install the default installation of Python and directly uninstall Python again that the Python Launcher remains. After that install Miniconda and then it works.

0 Likes