I've got code that needs python 2.7 (and other environments)
C:\Users\Me>conda info -e
# conda environments:
#
base * C:\Program Files\Anaconda3
python2 C:\Program Files\Anaconda3\envs\python2
I would like to be able to selectively activate python2 when I start a python shell in emacs (i.e. I send a line of code to the python interpreter using elpy). being able to put this in an init file would be cool.
I have tried both the conda and pyenv packages with no luck in my current configuration. Conda can't find my environments and pyenv doesn't seem to actually activate the virtual environment.
Using Emacs 26.1 and conda 4.5.11
Any help would be appreciated.
C-c , C-p
to run python,it always gives the warning below: Python 3.7.6 (default, Jan 8 2020, 20:23:39) [MSC v.1916 64 bit (AMD64)] :: Anaconda, Inc. on win32 Warning: This Python interpreter is in a conda environment, but the environment has not been activated. Libraries may fail to load. To activate this environment please see conda.io/activation Type "help", "copyright", "credits" or "license" for more information. my setting is as below,