Fatal Python error: initfsencoding: unable to load the file system codec problem solution

Because the project needs to work on C++ configuration-related things recently, my computer’s commonly used system is Ubuntu. I checked the win environment before doing it. My computer really didn’t disappoint me. It’s really a thing to be done. All the pits are willing to give up! !

Environment:
windows 10
python3.7 (I don't know how to get 3.7!!)
visual studio 2017

Problem :
Fatal Python error: initfsencoding: unable to load the file system codec
ModuleNotFoundError: No module
named'encodings ' Current thread 0x00001080 (most recent call first)

finally locates the problem of python

When I checked the Python version, I found a problem: I
Insert picture description here
found other people’s experience and they all succeeded, but my failed attempt was indeed:
conda info --envs
conda activate file location (the address of base *)
and then an error was reported: I
Insert picture description here
need one at this time Bottle of beer, really speechless! !
Update on August 23, 2020:
Several solutions have been thought of regarding the above python problems:

  1. Python downgrade, conda uninstall python, conda install python==3.6, this method did not succeed!
  2. Open the package manager that comes with conda and downgrade python without success!
  3. The above method is effective under base, but it is only a one-time, you can also directly conda activate base, the effect is the same, of course, I certainly don’t want to activate it every time, I saw that someone uninstalled conda, Install it again, don't check the path when installing, and then I reinstalled conda again. Sure enough, I have to step on all the pits before giving up, it is still useless to me!
  4. I downloaded anaconda 3.6 to solve the problem! ! ! ! ! ! !

3.6 corresponds to Anaconda 5.2. After 5.3, the
official address of python 3.7 is : https://repo.anaconda.com/archive/Tsinghua
University Mirror: https://mirrors.tuna.tsinghua.edu.cn/anaconda/ archive/

Guess you like

Origin blog.csdn.net/weixin_43868576/article/details/108176906