Sublime Text 4 with conda env

559 views Asked by At

I'd like to run python code I'm editing in Sublime Text 4 in a specific conda env. Questions Virtualenvs in Sublime Text 4 and use conda environment in sublime text 3 asked similar questions. The starting configuration Olgierd Wiśniewski had would serve for me if it worked. I edited his build code to:

{
    "shell_cmd": "C://Users/steve/anaconda3/envs/PY10_2/python.exe -u \"$file\"",
    "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
    "selector": "source.python"
}

saved it to my ST user directory, closed ST and reopened it. When I selected "Build With" I did not see my new sublime-build.

Would someone please set me straight?

1

There are 1 answers

0
Olgierd Wiśniewski On

You should find the new option (your new sublime-build) in Tools -> Build System .