Getting error when trying to install python

前端 未结 3 1114
面向向阳花
面向向阳花 2021-02-05 10:47

I have downloaded python-3.6.1.tar.xz. then I extracted it. There is a file README.rst. this is the instruction file. and has the instruction how to install.

On Unix, Li

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-05 10:47

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

    You should install zlib1g-dev and change your configure step like this:

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

    Now, try this:

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

    You can read more in Configure and compile Python with Zlib

提交回复
热议问题