Installing Twisted through pip broken on one server

后端 未结 2 828
Happy的楠姐
Happy的楠姐 2020-12-14 17:53

I am setting up a virtualenv on a new server, and when I used pip on our requirements file, it kept dying on Twisted. I commented the Twisted line out, and everything else i

2条回答
  •  佛祖请我去吃肉
    2020-12-14 18:16

    Ok after struggling with this for several hours, I figured out the problem.

    Running pip install --verbose twisted helped with the diagnosis.

    The error message is misleading. The problem is that I built a custom installation of Python 2.7.10 without having previously installed libbz2-dev. So the steps to fix this were:

    1. sudo apt-get install libbz2-dev
    2. cd /
    3. ./configure --prefix= --enable-ipv6
    4. make
    5. make install

    With this done, I can now create virtual environments and pip install Twisted.

提交回复
热议问题