|
纯小白,从来没接触过Linux,因为hass提示需要升级到Python3.8,干脆就下载了个Python3.9按照网上教程来安装,但是装完pip始终装不上,用sudo apt install python3-pip 安装后提示安装成功,显示
python3-pip is already the newest version (18.1-5).The following packages were automatically installed and are no longer required:
apt-file libapt-pkg-perl libexporter-tiny-perl liblist-moreutils-perl
libregexp-assemble-perl
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 96 not upgraded.
但是如果用pip3 -V 显示
raceback (most recent call last):
File "/usr/bin/pip3", line 9, in <module>
from pip._internal import main
ModuleNotFoundError: No module named 'pip'
我是怎么都找不到这个pip文件,python3.9安装的时候并没有自动安装pip,然后我手动Python3 setup.py
提示:Traceback (most recent call last):
File "<frozen zipimport>", line 520, in _get_decompress_func
ModuleNotFoundError: No module named 'zlib'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<frozen zipimport>", line 568, in _get_data
File "<frozen zipimport>", line 523, in _get_decompress_func
zipimport.ZipImportError: can't decompress data; zlib not available
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/Python-3.9.6/get-pip.py", line 24312, in <module>
main()
File "/root/Python-3.9.6/get-pip.py", line 139, in main
bootstrap(tmpdir=tmpdir)
File "/root/Python-3.9.6/get-pip.py", line 115, in bootstrap
monkeypatch_for_cert(tmpdir)
File "/root/Python-3.9.6/get-pip.py", line 96, in monkeypatch_for_cert
from pip._internal.commands.install import InstallCommand
File "<frozen zipimport>", line 241, in load_module
File "<frozen zipimport>", line 709, in _get_module_code
File "<frozen zipimport>", line 570, in _get_data
zipimport.ZipImportError: can't decompress data; zlib not available
实在搞不定了,请教各位高手
硬件N1,系统 Armbian Linux 5.3.0-aml-g12
|
|