Installing distribute in Python 3.3 Ubuntu

给你一囗甜甜゛ 提交于 2019-11-29 18:06:20

It is an issue with the fact you installed Python from source.

You need to install the zlib1g-dev package to provide the headers to Python to be able to compile in zlib support:

sudo apt-get install zlib1g-dev

You may be missing other dependencies; here is a list of packages I'd install if I were to compile Python on an Ubuntu machine:

build-essential
libbz2-dev
libncursesw5-dev
libreadline5-dev
libssl-dev
libgdbm-dev
libc6-dev
libsqlite3-dev
tk-dev

You need to have the zlib1g-dev library installed.

Try

sudo apt-get install zlib1g-dev

and reinstall.

If that doesn't work you may need to specify where zlib installs like so;

python setup.py install
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!