cmd>python3

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

Current thread 0x00001f28 (most recent call first): 
 
cmd>python2
No modules named XX
 
python35&&python27在windows启动时报错解决方案
 
原因:环境变量更改后造成的问题。需要修改环境变量增加一些路径:
 
%python35%
D:\Program Files\Python35\Scripts\;D:\Program Files\Python35\;D:\Program Files\Python35\Lib;D:\Program Files\Python35\Lib\site-packages;D:\Program Files\Python35\DLLs
 
%python27%
D:\Program Files\Python27\;D:\Program Files\Python27\Scripts;D:\Program Files\Python27\Lib;D:\Program Files\Python27\Lib\site-packages;D:\Program Files\Python27\DLLs
 
在环境变量中增加之后完美生效

相关文章:

  • 2022-12-23
  • 2021-10-12
  • 2021-09-30
  • 2021-08-19
  • 2021-07-21
  • 2021-11-10
  • 2021-11-16
  • 2021-07-20
猜你喜欢
  • 2021-12-16
  • 2021-07-12
  • 2022-12-23
  • 2021-06-03
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案