anaconda中Python2 和Python3的切换

比如 如果使用Python2.7 就会出现这样的情况(中文不能被编译)
在这里插入图片描述
这个时候,只需要换成Python3就可以解决了。

anaconda确实很好用
可以在python2 和Python3之间随意切换
安装Python3的步骤如下所示(都是在anaconda prompt中输入的)

conda create --name python36 python=3.6

切换Python2,3的命令:

    activate python36

    deactivate python36

用“conda list” 可以查看已经安装的包列表。



猜你喜欢

转载自blog.csdn.net/weixin_40929147/article/details/83512184