问题
I am trying to use the interactive shell of iPython within my conda env and am having issues. The steps I take are:
source activate myenv
conda install ipython
ipython
When I am in ipython interactive shell, it calls python from the anaconda root bin. (~/anaconda2/bin'
)
Is there anything I can do to change the python path to ~/anaconda2/envs/myenv/bin
and import packages from myenv?
I see few solutions to making env work in jupyter when I search the web, but no answer on making it work on the interactive shell.
来源:https://stackoverflow.com/questions/44682872/using-conda-environment-in-ipython-interactive-shell