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

前端 未结 8 1659
青春惊慌失措
青春惊慌失措 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:13

    First, don't forget to select "Add Python 3.x to PATH" Before you click on Install now and reboot after installation so that the new path is taken into account by Windows. Second, I had the the same problem with Phython 3 on Windows 7 and 64-bit and I got rid of it by deleting PYTHONPATH and PYTHONHOME from Windows 7 system environment variables because I had a previous installation of python 2 and those paths were pointing to my python 2 directory. I had to simply to delete the PYTHONPATH and PYTHONHOME variables.

提交回复
热议问题