Windows上的Python“致命错误”

时间:2018-01-14 16:55:38

标签: python windows python-3.5 fatal-error

我以前在我的电脑上安装了Python 3.5。但不知何故,可能是Windows 10更新搞砸了我的Python安装。你能解决这个问题吗?

这是我的python信息:

C:\WINDOWS\system32>python --version
Python 3.5.4

C:\WINDOWS\system32>python
Fatal Python error: Py_Initialize: unable to load the file system codec
  File "C:\Python27\Lib\encodings\__init__.py", line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00002c30 (most recent call first):

C:\WINDOWS\system32>set | findstr /i python

Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\rodrigo\AppData\Local\Programs\Python\Python35\Scripts\;C:\Users\rodrigo\AppData\Local\Programs\Python\Python35\;C:\Users\rodrigo\AppData\Local\Microsoft\WindowsApps;C:\Program Files\snap\bin
PYTHONPATH=C:\Python27\Lib;C:\Python27;C:\Program Files\Anaconda2\Lib\site-packages\pythonwin\pywin;C:\Program Files\Anaconda2\Lib\site-packages\pywin32_system32

0 个答案:

没有答案