首先,我已经知道了conda install python=3.6
我知道conda create --name py36 python=3.6
source activate py36
但是,我想更改的是
平台:osx-64conda version : 4.3.30
conda is private : False
conda-env version : 4.3.30
conda-build version : 3.0.19
python version : 3.5.4.final.0
requests version : 2.14.2
root environment : /Users/moonkeelee/anaconda (writable)
default environment : /Users/moonkeelee/anaconda
envs directories : /Users/moonkeelee/anaconda/envs
/Users/moonkeelee/.conda/envs
package cache : /Users/moonkeelee/anaconda/pkgs
/Users/moonkeelee/.conda/pkgs
channel URLs : https://repo.continuum.io/pkgs/main/osx-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/osx-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/osx-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/osx-64
https://repo.continuum.io/pkgs/pro/noarch
config file : None
netrc file : None
offline mode : False
user-agent : conda/4.3.30 requests/2.14.2 CPython/3.5.4 Darwin/16.7.0 OSX/10.12.6
UID:GID : 501:20
就像我说的,我经常conda install python=3.6
但是,它并没有改变conda python版本的版本,正如您在上面看到的。如果我重新安装Python3.6,将发生以下错误UnsatisfiableError: The following specifications were found to be in conflict:
- argcomplete -> argparse -> python 2.6*
- python 3.6*
Use "conda info " to see the dependencies for each package.
现在。。我不知道怎么做。我想更改python的默认版本,而不是使用conda的环境,我想用atom开发python,如果我用atom检查python版本import sys
print(sys.version)
尽管我安装了python 3.6,但版本始终是3.5。
请帮忙