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
内,所以出了什么问题?