Installing distribute in Python 3.3 Ubuntu

后端 未结 2 541
囚心锁ツ
囚心锁ツ 2020-12-22 05:29

I am running Ubuntu 12.04 and I have a distribution of Python 3.3.1 installed. I want to install some packages, so I first sought to install distribute-0.6.38. During the \"

相关标签:
2条回答
  • 2020-12-22 06:02

    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
    
    0 讨论(0)
  • 2020-12-22 06:22

    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
    
    0 讨论(0)
提交回复
热议问题