在虚拟环境使用django,结束后移动了整个文件夹,之后运行python时开始报错,怎么解决?
问题描述:
在终端会话运行python后开始报错,之前运行一直是正常的,通过开始窗口可以正常打开python。我试过重装python,但是没什么用。用的是windows系统
口 命令提示符 X
A
:users >python
Could not find platform independentlibraries<prefix
ouldnotfindplatform dependentlibrariesexecprefix>
ythonpath configuration:
PYTHONHOME三 notset
PYTHONPATH 二 (notset
program name 二 python
isolated=0
environment 三1
user site=1
importsite=1
sys._base_executable =E:u5e94u7528Inkscape\\bin\ python.exe
sys.base_prefix ='D:a\_temp\msys\msys641mingw64
sys.base_exec_prefix= D:a\_temp\msys\msys641mingw64
sys.executable =E:u5e94u7528Inkscape\bin\python.exe
sys.prefix ='D:aytempymsysmsys64mingw64
sys.exec_prefix=D:a_tempmsysmsys64mingw64
sys.path=
D:atemp\msysmsys64mingw64libpython38.zip
D:1lalltempl\msysl\msys641mingw6411ibl\python3.8
D:a_tempY\msysYmsys641mingw6411ibpython3.8
D:1al_temp\\msys\Imsys641mingw641liblib-dynload
Fatal Python error:init_fs_encoding:failed to get the Python codec of the filesystem encoding
ython runtime state:coreinitialized
ModuleNotFoundError: No module named encodings
Current thread 0x000026f4(most recent call first):
noPython
答
提示已经比较清楚了,缺少 encoings 模块。No module named encodings