iPython with different env (using anaconda)
AFAIK, different environments in anaconda (and in venv as well) are activated by prepending env path to $PATH
environment variable. It means, that if some file (eg, ipython
) is not found in env path (the first entry of $PATH
), the system searches for it in consequent entries of $PATH
and finds it in root environment (that stays in $PATH
). To fix the behavior, you need to install its own copy of ipython
to anaconda env:
- In command prompt, activate the environment:
source activate python35
(or simplyactivate python35
, depending on the OS) - While in environment, issue the command
conda install ipython-notebook
An addition to Andrey Sobolev solution,you should switch to conda install ipython
for higher python3.x version and log out the environment by Ctrl+D
or conda deactivate
then activate again