比如 如果使用Python2.7 就会出现这样的情况(中文不能被编译)
anaconda中Python2 和Python3的切换
这个时候,只需要换成Python3就可以解决了。

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

conda create --name python36 python=3.6

切换Python2,3的命令:

    activate python36

    deactivate python36

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



相关文章:

  • 2021-03-28
  • 2021-04-15
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2021-10-27
  • 2022-12-23
猜你喜欢
  • 2022-01-08
  • 2021-06-16
  • 2021-11-21
  • 2021-09-05
  • 2021-06-17
  • 2021-08-31
相关资源
相似解决方案