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

前端 未结 8 1627
青春惊慌失措
青春惊慌失措 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.
    0 讨论(0)
  • 2020-12-01 21:36

    even I had the same issue when I installed python 3.7 beta version, I resolved it by following these steps :

    1. if you have nay previous version of python installed and the environment variable and path is set for that version already , just remove the path and env variable

    2.run the downloaded python 3.7 exe file as administrator

    3.At the end of installation if it asks the permission for path length just click on that. now type "python" in command line and see , it should work.

    0 讨论(0)
提交回复
热议问题