building Python from source with zlib support

后端 未结 10 760
广开言路
广开言路 2020-11-28 04:18

When building Python 3.2.3 from source on Ubuntu 12.04, the zlib module is not available.

I downloaded the official source distribution from python.org, and attempte

10条回答
  •  情歌与酒
    2020-11-28 05:04

    sudo apt-get install build-essential python-dev
    

    Even though python-dev is for python2.7 it will still bring in all the necessary dependencies.

    You will then need to do:

    ./configure
    make
    sudo make install
    

    To rebuild python3

提交回复
热议问题