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:
- Fatal Python error: Py_Initialize: unable to load the file system codec.
- Unable to load file D:: program files (x86) node-v16.4.0-win-x861 because scripts are not allowed to run on this system.
- (Copy python package, the problem generated) pip Fatal error in launcher: Unable to create process using
- [unable to read project file xxxxx, XXX failed to load project file, name cannot start with “<" character (hex value 0x3c)] exception handling method
- Python error: importerror: DLL load failed: unable to find the specified module solution
- Solve the problem of Python in Windows environment: Fatal error in launcher: Unable to create process using’”‘ in pip installation
- Cnpm: unable to load file
- Vs fatal error C1083: unable to open include file: “sys / socket. H”: no such file
- Run Python file for the first time with eclipse / pydev: “UTF-8 ‘codec can’t decode byte 0xc4 in position
- Fatal: unable to create ‘project_ path/.git/ index.lock ‘: File exists.
- Vscode cnpm: unable to load file, but open console with CMD without error
- Unable to open the physical file “d:\***.mdf”. Operating system error 5: “5(Access is denied.)”.
- A fatal error C1083 occurred when compiling C + + code under. Net: unable to open the include file: “xuhk”_ Jnihelloworld. H “: solution to no such file or directory error.
- When reading the CSV file with Python 3, the Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd0 in position 0: invalid con appears
- fatal error: Python.h: No such file or directory
- Permission denied error: unable to index file .vs/Trip2015/v15/Server/sqlite3/db.lock fatal: adding
- Fatal error in CentOS: Python. H: no that file or directory
- fatal error: Python.h: No such file or directory
- Solve the problem of unable to locate package python3.6 when upgrading from python3.5 to python3.6 in ubantu16.04
- SQL Server import MDF and LDF files appear: unable to open physical file “D:\ XX.mdf “。 Operating system error 5: “5 (access denied. )”Solutions