building Python from source with zlib support

后端 未结 10 773
广开言路
广开言路 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:12

    The easiest solution I found, is on python.org:

    sudo apt-get build-dep python3.6
    

    If that package is not available for your system, try reducing the minor version until you find a package that is available in your system’s package manager.

    If you see something like this: E: You must put some ‘source’ URIs in your sources.list, Open Software & Updates and enable Source code.

    I tried explaining details, on a blog post.

提交回复
热议问题