首先,我已经做了
conda install python=3.6
我知道
conda create --name py36 python=3.6
source activate py36
但是,我想改变的是 anaconda 的默认 python 版本
平台: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。
请帮忙
请您参考如下方法:
首先尝试卸载有问题的包。有时可能会与旧版本的包发生冲突(甚至最新的 python 版本可能不支持这些包,但是 - 这不应该是 arcomplete 的情况)。
conda uninstall arcomplete
- 这是
conda remove argcomplete conda-manager的别名
然后再次运行
conda install python=3.6
如果弹出另一个冲突,我建议从路径中删除 conda 并完全重新安装它,它可能处于之前使用的损坏或冲突状态(例如 --force 删除)
