Feb-11-2020, 01:27 PM
- If I
- If I
Should I
Cheers
Pei
export PYTHONHOME=/usr/bin
, I got the following ERRORs.Quote:➜ build git:(master) ✗ echo $PYTHONHOME
/usr/bin
➜ build git:(master) ✗ echo $PYTHONPATH
/home/longervision/.local/lib/python3.8/site-packages:/usr/lib/python3.8/site-packages:/usr/local/lib/python3.8/site-packages
➜ build git:(master) ✗ pip show setuptools
Python path configuration:
PYTHONHOME = '/usr/bin'
PYTHONPATH = '/home/longervision/.local/lib/python3.8/site-packages:/usr/lib/python3.8/site-packages:/usr/local/lib/python3.8/site-packages'
program name = '/usr/bin/python'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/bin/python'
sys.base_prefix = '/usr/bin'
sys.base_exec_prefix = '/usr/bin'
sys.executable = '/usr/bin/python'
sys.prefix = '/usr/bin'
sys.exec_prefix = '/usr/bin'
sys.path = [
'/home/longervision/.local/lib/python3.8/site-packages',
'/usr/lib/python3.8/site-packages',
'/usr/local/lib/python3.8/site-packages',
'/usr/bin/lib/python38.zip',
'/usr/bin/lib/python3.8',
'/usr/bin/lib/python3.8/lib-dynload',
]
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 0x00007f12b17cbd80 (most recent call first):
<no Python frame>
- If I
export PYTHONHOME=""
Quote:➜ build git:(master) ✗ export PYTHONHOME=""
➜ build git:(master) ✗ pip show setuptools
Name: setuptools
Version: 45.2.0
Summary: Easily download, build, install, upgrade, and uninstall Python packages
Home-page: https://github.com/pypa/setuptools
Author: Python Packaging Authority
Author-email: distutils-sig@python.org
License: UNKNOWN
Location: /home/longervision/.local/lib/python3.8/site-packages
Requires:
Required-by: zope.interface, wadllib, twine, tensorboard, Sphinx, protobuf, Markdown, lazr.restfulclient, launchpadlib, kiwisolver, jsonschema, ipython, google-auth
➜ build git:(master) ✗
Should I
export PYTHONHOME=/usr/bin
?Cheers
Pei