我已经下载了 python-3.6.1.tar.xz。然后我提取了它。有一个文件 README.rst。这是说明文件。并有如何安装的说明。
在 Unix、Linux、BSD、macOS 和 Cygwin 上::
./configure
make
make test
sudo make install
完成第一两个步骤,即 upto make 没有错误。但当我make test
然后得到这些错误。
FAILED (failures=1)
test test_venv failed
1 test failed again:
test_venv
Total duration: 4 min 13 sec
Tests result: FAILURE
Makefile:1018: recipe for target 'test' failed
make: *** [test] Error 1
我创建了一个包含错误的文件并将其共享到 Google 云端硬盘。单击此处查看完整的堆栈跟踪。 https://drive.google.com/open?id=0B-jg8jj8ZthWT0dWdFhUaEVVTEE
错误的相关部分是:
**Subprocess Output**
Traceback (most recent call last):
File "/home/kd/Python-3.6.1/Lib/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/home/kd/Python-3.6.1/Lib/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/kd/Python-3.6.1/Lib/ensurepip/__main__.py", line 4, in <module>
ensurepip._main()
File "/home/kd/Python-3.6.1/Lib/ensurepip/__init__.py", line 189, in _main
default_pip=args.default_pip,
File "/home/kd/Python-3.6.1/Lib/ensurepip/__init__.py", line 102, in bootstrap
_run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
File "/home/kd/Python-3.6.1/Lib/ensurepip/__init__.py", line 27, in _run_pip
import pip
zipimport.ZipImportError: can't decompress data; zlib not available