Fatal Python error on Windows 10 ModuleNotFoundError: No module named 'encodings'

前端 未结 8 1679
青春惊慌失措
青春惊慌失措 2020-12-01 20:50

I\'m installing python on my windows 10 laptop, and when I try to run it I get this.

Fatal Python error: Py_Initialize: unable to load the file system

8条回答
  •  盖世英雄少女心
    2020-12-01 21:33

    Not sure why this question is still here without a solution. I just encountered this and solved by this:

    1. Close all CMD or console emulator.

    2. Go to the system environment settings and clear all old Python path or environment settings. Make sure you check the PATH in both User and System settings as well.

    3. Try again python -V and see can you run it or not.

      • If you have removed all Python environment settings, I recommend you to reinstall Python and turn on the Add Python to PATH setting during installation.

提交回复
热议问题