比如 如果使用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” 可以查看已经安装的包列表。



相关文章:

  • 2022-01-10
  • 2021-12-02
  • 2021-11-29
  • 2021-11-19
  • 2021-06-14
  • 2021-12-02
  • 2022-01-25
  • 2021-06-26
猜你喜欢
  • 2022-01-08
  • 2021-11-21
  • 2021-06-17
  • 2021-03-28
  • 2021-04-15
  • 2021-07-12
  • 2022-01-01
相关资源
相似解决方案