Using conda in iPython Interactive Shell

I am trying to use the iPython interactive shell in my conda env and I am having problems. I am doing the following steps:

source activate myenv conda install ipython ipython 

When I'm in the 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 the packages from myenv?

I see several solutions for creating env work in jupyter when searching the Internet, but there is no answer for it working on an interactive shell.

+5
source share

Source: https://habr.com/ru/post/1269074/


All Articles