Warum kann Conda nach dem Aktivieren der Umgebung nicht die richtige Python-Version aufrufen?
Ich habe die folgende Conda-Umgebung unter Linux:
$ conda info -e
# conda environments:
#
py33 /u21/coyotito/.anaconda/envs/py33
root * /u21/coyotito/.anaconda
Undpy33
wird mit diesem Befehl erstellt:
$ conda create -n py33 python=3.3 anaconda
Das Problem ist, wenn ich @ aktiviepy33
Es kann immer noch nicht Python Version 3.3 aufrufen.
[coyotito@pearl ~]$ source activate py33
(coyotito)[coyotito@pearl ~]$ python --version
Python 2.7.10 :: Anaconda 2.1.0 (64-bit)
(coyotito)[coyotito@pearl ~]$ conda info -e
# conda environments:
#
py33 /u21/coyotito/.anaconda/envs/py33
root * /u21/coyotito/.anaconda
Namely nennt es immer noch alte Python. Beachten Sie auch, dass die Eingabeaufforderung in Klammern nicht @ laute(py33)
.
(coyotito)[coyotito@pearl ~]$ which python
~/.anaconda/bin/python
Anstelle von Python in einer neuen Umgebung:
~/.anaconda/envs/py33/bin/python3.3
Wie kann ich dieses Problem beheben?
Aktualisiere
Meine PATH-Umgebung in~/.bash_profile
sieht aus wie das
export PATH=$HOME/.anaconda/bin:$PATH