I'm trying to set up Sublime Text 3 as a multilingual editor for doing data science.
For this I use Sublime REPL for executing code in Sublime, and intend to use Anaconda's (continuum analytics) built in virtual environments to make a venv for each project.
Unfortunately, the virtualenv option in Sublime REPL does not seem to support environments made with conda create
.
By default it seems that Sublime REPL is using the root copy of python in anaconda, as it prints this information.
Python 3.5.1 |Anaconda 4.1.0 (x86_64)| (default, Jun 15 2016, 16:14:02)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
However, even trying fixes proposed by other questions: Sublime text3 and virtualenvs and How Do I Setup SublimeREPL with Anaconda's interpreter? once things are set up I get an error
PermissionError(13, 'Permission denied')
When I try to point at a virtual env created with conda create
.
Is there any way to make Sublime REPL execute code with a particular conda environment? Or do I need to avoid the Anaconda distribution and use a manual install of python and virtualenv
?
This question might be a duplicate for this one.
As explained in the answer above, you can extend the list of usable python versions:
(Almost a) Quotation from the answer above:
In your Packages/User folder, create
SublimeREPL/config/Python/Main.sublime-menu
with the following contents:If you're on Windows, either use a single / as path delimiter, or double \:
Save the file, and you should now have
Tools -> SublimeREPL -> Python -> Python - Anaconda
andIPython - Anaconda
menu options to start REPLs with the Anaconda interpreter.If you have multiple versions of Python installed (for example, 2.7 and 3.3) or multiple virtualenvs you can just duplicate the children contents and alter the caption and cmd paths appropriately.