When both Python 2 and Python 3 exist and one of them fails to start, an error is reported in one of two cases
1. File error in python2 path failed to start python3

Fatal Python error: initfsencoding: Unable to load the file system codec
file “C:\Python27\Lib\encodings\__init__. Py “, line 123
ise CodecRegistryError,\
^>r> syntaxe> : invalid syntax
Current thread 0x000004dc (most recent call first):
2, file error in python3 path failed to start

File “E:\Python37\Lib\site.py”, line 177
File =sys.stderr)
s>xerror: invalid syntax
The above two cases in returning the same, the reason is to set the environment variable PYTHONPATH, PYTHONPATH is Python search path, we import the default module will search from the PYTHONPATH, environment variable is set to one version of the module path, lead to another version of the module loading path error when starting, leading to launch failure, this is according to the online tutorial to install Python when leaving a hole, the variable can not actually, The environment variable needs to be configured when the custom module is no longer in the Python installation path, so you can remove this environment variable, or just remove C:\Pythonxx\Lib

Perfect solution after deletion
1. File error in python2 path failed to start python3

Fatal Python error: initfsencoding: Unable to load the file system codec
file “C:\Python27\Lib\encodings\__init__. Py “, line 123
ise CodecRegistryError,\
^>r> syntaxe> : invalid syntax
Current thread 0x000004dc (most recent call first):
2, file error in python3 path failed to start

File “E:\Python37\Lib\site.py”, line 177
File =sys.stderr)
s>xerror: invalid syntax
The above two cases in returning the same, the reason is to set the environment variable PYTHONPATH, PYTHONPATH is Python search path, we import the default module will search from the PYTHONPATH, environment variable is set to one version of the module path, lead to another version of the module loading path error when starting, leading to launch failure, this is according to the online tutorial to install Python when leaving a hole, the variable can not actually, The environment variable needs to be configured when the custom module is no longer in the Python installation path, so you can remove this environment variable, or just remove C:\Pythonxx\Lib

Perfect solution after deletion

Read More:
- Can’t find Python executable “D:\python3\python.exe”, you can set the PYTHON env variable.
- [Python] error syntax error: summary of solutions to invalid syntax
- Fatal Python error: Py_Initialize: unable to load the file system codec.
- Error syntax error: invalid syntax in PIP install XXX
- The app failed to start because there is no Qt platform to initialize
- Solve the problem of Python in Windows environment: Fatal error in launcher: Unable to create process using’”‘ in pip installation
- Linux update Python method and error handling
- Idapython: the solution of importing “site” failed error
- Import sys module
- (Copy python package, the problem generated) pip Fatal error in launcher: Unable to create process using
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- OpenCV3.1 + Python2.7 error “DLL load failed: The specified module could not be found”
- Tensorflow import error: DLL load failed: the specified module could not be found
- Pysot installation and model testing
- Cannot run program “make” when compiling APM firmware with eclipse under Windows: launching failed problem
- tensorflow import error: DLL load failed: The specified module could not be found (DLL load failed: The specified module could not be found)
- Ctypes loading DLL error oserror: [winerror 126] the specified module could not be found
- Error: could not find java.dll Error: could not find Java se runtime environment solution
- ImportError: ‘DLL load failed: %1 is not a valid Win32 application.
- Installation and unloading of Python module