Python 不再起作用-“site”导入失败

Python 不再起作用-“site”导入失败

周末过后,我电脑上的某些程序已停止正常运行。最重要的是 Scrapy 和 Python,我需要它们来完成特定任务。现在当我运行 Scrapy 时,我收到错误。我尝试卸载并重新安装,但问题仍然存在。请帮忙。我使用的是 Windows 7(我必须使用它)。

C:\Users\abc> scrapy -help
ImportError: No module named site

C:\Users\abc>python
ImportError: No module named site

C:\Users\abc>python -v



# installing zipimport hook

import zipimport # builtin
# installed zipimport hook
ImportError: No module named site

# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# clear sys.flags
# clear sys.float_info
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] exceptions
# cleanup[1] _warnings
# cleanup sys
# cleanup __builtin__
# cleanup ints: 6 unfreed ints
# cleanup floats

相关内容