Error:
prompt when opening pycharm: invalid python sdk.
The cmd appears as: Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding;
Error message:
Python path configuration:
PYTHONHOME = ‘C:\PythonHome’
PYTHONPATH = ‘C:\PythonPath’
program name = ‘D:\Python38\python.exe’
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = ‘D:\Python38\python.exe’
sys.base_prefix = ‘C:\PythonHome’
sys.base_exec_prefix = ‘C:\PythonHome’
sys.executable = ‘D:\Python38\python.exe’
sys.prefix = ‘C:\PythonHome’
sys.exec_prefix = ‘C:\PythonHome’
sys.path = [
‘C:\PythonPath’,
‘D:\Python38\python38.zip’,
‘C:\PythonHome\DLLs’,
‘C:\PythonHome\lib’,
‘D:\Python38’,
]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
ModuleNotFoundError: No module named ‘encodings’
Current thread 0x00008bd8 (most recent call first):
Configuring environment variables, no matter how they are configured, does not work.
Solution:
Tried opening the installation package directly and reinstalling it, and making changes in System Applications and Features, but none of them solved it.
I can only find python in settings-applications and features, uninstall it first, and then reinstall it.
The problem is solved, although after re-entering pycharm, the previous library needs to be reinstalled.
Read More:
- [Solved] Fatal Python error: initfsencoding: Unable to get the locale encoding
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- How to Solve Python WARNING: Ignoring invalid distribution -ip (e:\python\python_dowmload\lib\site-packages)
- Python Fatal error: Py_Initialize: unable to load the file system codec
- [Solved] opencv-python: recipe for target ‘modules/python3/CMakeFiles/opencv_python3.dir/all‘ failed
- [Solved] NPM install Error: check python checking for Python executable python2 in the PATH
- npm install Error: stack Error: Can’t find Python executable “python”
- Python Error: pip install mysql-connector-python failed
- Python3 Fatal error in launcher: Unable to create process using ‘”‘
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- Python: How to get the size of the picture (byte/kb/mb)
- [Solved] IDA Start Error: Unexcepted fatal error while intitailizing Python runtime…
- Linux installs Python and upgrades Python
- Python PIP Fatal error in launcher: Unable to create process using ‘“e:\program files\programdata
- [Solved] PySide2 Failed to Create a Graphical Python Program
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry
- [Solved] Python Error: tensorflow.python.framework.errors_impl.UnknownError: 2 root error(s) found.
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python