python - Installing Twisted through pip broken on one server -


i setting virtualenv on new server, , when used pip on our requirements file, kept dying on twisted. commented twisted line out, , else installed fine. @ command line, output see when try install twisted (the same error see when run entire requirements file once gets twisted line):

(foo)company@server:~$ pip install twisted collecting twisted   not find version satisfies requirement twisted (from versions: ) no matching distribution found twisted 

i can install twisted fine dev machine , other servers, , on server seem able install other packages fine.

case , version not matter. same result if use "twisted", "twisted", "twisted==15.2.1".

this ec2 instance running ubuntu 14.04.02.

ok after struggling several hours, figured out problem.

running pip install --verbose twisted helped diagnosis.

the error message misleading. problem built custom installation of python 2.7.10 without having installed libbz2-dev. steps fix were:

  1. sudo apt-get install libbz2-dev
  2. cd /<untarred python source dir>
  3. ./configure --prefix=<my install path> --enable-ipv6
  4. make
  5. make install

with done, can create virtual environments , pip install twisted.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -