mandeep / sublime-text-conda

Work with conda environments in Sublime Text 3
BSD 3-Clause "New" or "Revised" License
26 stars 10 forks source link

Conda configuration #37

Open ndharper opened 2 years ago

ndharper commented 2 years ago

I can't seem to configure conda so that it finds the right python interpreter. It uses the default 2.7 whereas I want to use the 3.9 in the anaconda distribution. When I run spyder from Anaconda navigator, print(sys.executable) gives a path /Users/nickharper/opt/anaconda3/bin/python. When I try to run from within sublimetext, it tries to run some version of python 2.

I have edited the Conda (OSX).sublime-settings in uswrs/nick/harper/library/application support/Sublime Text/Packages/User but it doesn't help. Here's the contents of that file.

{ // executable is the path to anaconda's python // this python executable is used in order to find conda "executable": "~/opt/anaconda3/bin/python",

// Directory in which the conda envs are stored
// Default location is the user's home directory
"environment_directory": "~/opt/anaconda3/envs/",

// System architecture for Python installation
// options: 32 or 64 bit
"architecture": "64",

// configuration is the path to conda's configuration file
"configuration": "~/.condarc"   

}

BW Nick Harper nicholas.harper@kcl.ac.uk

mandeep commented 2 years ago

Could you let me know which version of Sublime Text you're using?