ImportError: No module named site

cmd中执行python提示:ImportError: No module named site

运行python.exe

Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'

Current thread 0x00000894 (most recent call first):

这是因为设置了PYTHONHOME环境变量

删除后正常

posted @ 2020-07-29 19:04  DirWangK  阅读(1423)  评论(0编辑  收藏  举报