【发布时间】:2018-04-10 10:46:11
【问题描述】:
首先,我已经这样做了
conda install python=3.6
我知道
conda create --name py36 python=3.6
source activate py36
但是,我要更改的是默认python版本的anaconda in
平台:osx-64
conda 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 版本的版本。如果我重新安装 python 3.6 会出现以下错误
UnsatisfiableError: The following specifications were found to be in conflict:
- argcomplete -> argparse -> python 2.6*
- python 3.6*
Use "conda info <package>" to see the dependencies for each package.
现在..我不知道该怎么做。我想更改python的默认版本,而不是使用conda的环境,我想用atom开发python,如果我用
atom中的python版本
import sys
print(sys.version)
虽然我安装了 python 3.6,但版本总是 3.5。
请帮忙
【问题讨论】: