Why Conda cannot call correct Python version after activating the environment?

后端 未结 3 1910
天命终不由人
天命终不由人 2020-12-18 19:19

I have the following conda environment under Linux:

$ conda info -e
# conda environments:
#
py33                     /u21/coyotito/.anaconda/envs/py33
root           


        
3条回答
  •  既然无缘
    2020-12-18 19:47

    Landed here with this same issue, but by moving out of the anaconda executable directory, the correct python was called. I was in a directory that contained the python executable that was installed with Anaconda2.

    Example:

    (py35) C:\Anaconda>python --version
    Python 2.7.11 :: Anaconda 4.0.0 (64-bit)
    
    (py35) C:\Anaconda>cd ..
    
    (py35) C:\>python --version
    Python 3.5.2 :: Anaconda 4.2.0 (64-bit)
    
    (py35) C:\>
    

提交回复
热议问题