意外系统重启后无法初始化Python

时间:2017-01-27 14:48:16

标签: python python-2.7

Windows 7 64位上的

Python 2.7.3

所以基本上在意外断电之后,现在我甚至无法在命令行中启动python,问题相当奇怪:

Traceback (most recent call last):
  File "D:\Program Files (x86)\Python2.7.3\lib\site.py", line 563, in <module>
    main()
  File "D:\Program Files (x86)\Python2.7.3\lib\site.py", line 552, in main
    aliasmbcs()
  File "D:\Program Files (x86)\Python2.7.3\lib\site.py", line 477, in aliasmbcs
    import locale, codecs
  File "D:\Program Files (x86)\Python2.7.3\lib\locale.py", line 15, in <module>
    import encodings
  File "D:\Program Files (x86)\Python2.7.3\lib\encodings\__init__.py", line 44, in <module>
    _aliases = aliases.aliases
AttributeError: 'module' object has no attribute 'aliases'

显然aliases词典就在aliases.py内,所以出了什么问题?

0 个答案:

没有答案