2015-11-13 1 views
1

En bref: Comment définir l'environnement pour iPython avec conda?Anaconda change l'environnement pour python, mais pas ipython

$ which python 
/usr/local/anaconda2/bin/python 
$ which ipython 
/usr/local/anaconda2/bin/ipython 
$ source activate myenv2 
discarding /usr/local/anaconda2/bin from PATH 
prepending /home/username/.conda/envs/myenv2/bin to PATH 
$ which python 
/home/username/.conda/envs/myenv2/bin/python 
$ which ipython 
/usr/bin/ipython 
+0

Etes-vous sûr que vous avez installé '' ipython' dans myenv2'? – cel

+0

@cel Non, je n'ai pas. Je pensais qu'iPython attraperait 'python' de' PATH' à l'exécution. – FooBar

+0

Les environnements de conda sont très similaires à virtualenvs. Ils sont tous séparés et vous devez installer des paquets séparément. – cel

Répondre

1

iPython a besoin d'être installés pour chaque séparement environnement Conda, comme par commentaire de @cel