terminal open error
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
want to clean up the python installation version, get rid of some files, this is what happened, my hand is out of control……
Solution:
1. sudo vim /etc/profile/
2. export PYTHONHOME=/Library/Frameworks/Python.framework/Versions/3.7
export PYTHONPATH=.:$PYTHONHOME/bin:$PYTHONHOME/site-packages
export PATH=$PATH:$PYTHONHOME:$PYTHONP
Error after run
Fatal Python error: Py_Initialize: unable to load the file system codec
ModuleNotFoundError: No module named 'encodings'
Continue to modify
to delete the environment variables associated with anaconda
Perfect!
Read More:
- Linux Fatal Python error: Py_Initialize Unable to get the locale encoding
- Invalid python sd, Fatal Python error: init_fs_encoding: failed to get the Python cod [How to Solve]
- [Solved] Fatal Python error: initfsencoding: Unable to get the locale encoding
- How to Solve Python Importerror: DLL load failed: unable to find the specified program using tensorflow
- Python3 Fatal error in launcher: Unable to create process using ‘”‘
- Importerror: DLL load failed: unable to find the specified module in Python
- [Solved] supervisor Error: /usr/local/lib/python2.7/dist-packages/pkg_resources/py2_warn.py:22: UserWarning: Setuptools will stop working on Python 2
- Chromdriver Install error: File “C:\python37\lib\site-packages\selenium\webdriver\common\service.py”, line 76, in start stdin=PIPE) File…
- Python PIP Fatal error in launcher: Unable to create process using ‘“e:\program files\programdata
- Python pyqt5 ui Generate .py File Error [How to Solve]
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- [Solved] pip Fatal error in launcher: Unable to create process using
- The solution of no such file or directory and cannot load native module running error of python3 pyinstaller after packaging
- [Solved] Converting IU to py using pyuic5 – O reports an error importerror: DLL load failed while importing qtcore: the specified module cannot be found.
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- Jupyter notebook Failed to Switch to the Virual Environment: DLL load failed python.exe could not find the entry
- Python installs virtualenv through PIP and always reports an error: response.py“, line 438, in _error_catcher yield
- [Solved] command “python setup.py egg_info“ failed with error code 1
- [Solved] Command “python setup.py egg_info” failed with error code 1