加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Python > 正文

我安装了python 2.7和3.5,但python 3.5不能正常工作

发布时间:2020-12-16 22:50:22 所属栏目:Python 来源:网络整理
导读:在终端中,我可以成功运行py -2. 尽管如此, C:Usersuserpy -3Fatal Python error: Py_Initialize: unable to load the file system codec File "C:Python27libencodings__init__.py",line 123 raise CodecRegistryError, ^SyntaxError: invalid syntax

在终端中,我可以成功运行py -2.
尽管如此,

C:Usersuser>py -3
Fatal Python error: Py_Initialize: unable to load the file system codec
  File "C:Python27libencodings__init__.py",line 123
    raise CodecRegistryError,
                            ^
SyntaxError: invalid syntax

Current thread 0x00004570 (most recent call first):
最佳答案
删除“PYTHONHOME”环境变量.
(这在安装python27 x86和python36 x64时解决了我的问题)

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读