你好,我刚刚安装了 python,如下突出显示,altinstall 出现错误,我应该使用 make install 吗?
./configure
make
sudo make altinstall
Run Code Online (Sandbox Code Playgroud)
或者
./configure
make
sudo make install
Run Code Online (Sandbox Code Playgroud)
我正在遵循教程,这就是错误。
File "/home/plutes/Downloads/Python-3.6.6rc1/Lib/ensurepip/__init__.py", line 117, in _bootstrap
return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/home/plutes/Downloads/Python-3.6.6rc1/Lib/ensurepip/__init__.py", line 27, in _run_pip
import pip._internal
**zipimport.ZipImportError: can't decompress data; zlib not available
Makefile:1113: recipe for target 'altinstall' failed
make: *** [altinstall] Error 1**
plutes@plutes-Lenovo-G50-30:~/Downloads/Python-3.6.6rc1$ cd
plutes@plutes-Lenovo-G50-30:~$ python
python python3 python3.6m-config python3m
python2 python3.6 python3.7
python2.7 python3.6m python3.7m
plutes@plutes-Lenovo-G50-30:~$ python3.6
Python 3.6.6rc1 (default, Jun 17 …Run Code Online (Sandbox Code Playgroud)