2017-04-18 253 views
0

我已经下载了python-3.6.1.tar.xz。然后我提取它。有一个文件README.rst。这是指令文件。并具有如何安装的说明。尝试安装python时出现错误

在Unix,Linux,BSD,MacOS和Cygwin的::

./configure 
make 
make test 
sudo make install 

1日完成两个步骤,即高达使无任何错误。但是当我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 

我已经创建了一个带有错误的文件并在googl驱动器中共享它。 Click Here

+0

zlib的不可用,请安装zlib – RaminNietzsche

回答

4

zipimport.ZipImportError: can't decompress data; zlib not available

您应该安装zlib1g-dev和改变配置的步骤是这样的:

./configure --with-zlib=/usr/include 

现在试试这个:

make clean 
apt-get install zlib1g-dev 
./configure --with-zlib=/usr/include 
... 

你可以阅读更多的Configure and compile Python with Zlib