Using conda environment in iPython interactive shell

醉酒当歌 提交于 2019-12-08 15:26:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!