网上找了很多删除依赖的命令都会报错,自己百度命令结果越弄乐乱,不知道该如何操作,卸载的命令也试过了,都会报错
caros@ubuntu:~$ python3
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
Python path configuration:
PYTHONHOME = (not set)
PYTHONPATH = ':/home/caros/otaclient/:/home/caros/secure_upgrade/python/'
program name = 'python3'
isolated = 0
environment = 1
user site = 1
import site = 1
sys._base_executable = '/usr/bin/python3'
sys.base_prefix = '/usr/local/python3'
sys.base_exec_prefix = '/usr/local/python3'
sys.executable = '/usr/bin/python3'
sys.prefix = '/usr/local/python3'
sys.exec_prefix = '/usr/local/python3'
sys.path = [
'',
'/home/caros/otaclient/',
'/home/caros/secure_upgrade/python/',
'/usr/local/python3/lib/python38.zip',
'/usr/local/python3/lib/python3.8',
'/usr/local/python3/lib/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 0x00007fa8f8654740 (most recent call first):
<no Python frame>
[](
caros@ubuntu:~$ whereis python
python: /usr/bin/python3.4m /usr/bin/python /usr/bin/python2.7-config /usr/bin/python2.7 /usr/bin/python3.4 /etc/python /etc/python2.7 /etc/python3.4 /usr/lib/python2.7 /usr/lib/python3.4 /usr/bin/X11/python3.4m /usr/bin/X11/python /usr/bin/X11/python2.7-config /usr/bin/X11/python2.7 /usr/bin/X11/python3.4 /usr/local/lib/python2.7 /usr/local/lib/python3.4 /usr/include/python2.7 /usr/share/python /usr/share/man/man1/python2.1 /usr/share/man/man1/python.1.gz /usr/share/man/man1/python.1