When using pip install Twisted
in virtualenv on Mac osx 10.9.4, I get this result:
Command \"python setup.py egg_info\" failed with error code 1
The error you reported is incomplete. There are almost certainly more details above it in the pip
output. It would help if edit them into your question.
A survey of similar questions:
Suggests that:
But the additional certificate verification failure errors you've included suggest it's not caused by any of these. Instead, a dependency cannot be downloaded because pip can't do a TLS handshake with the PyPI server it needs to download the dependency from.
This could be caused by many different things. Can your system's browsers load https://pypi.python.org/
? If not, perhaps there's something wrong system-wide: you might have outdated certificate authority certificates or there might be a man-in-the-middle attack taking place.
openssl s_client
can sometimes be useful for debugging issues like these. Try:
openssl s_client -showcerts -connect pypi.python.org:443
This may give you more details about what's happening at the TLS layer. If openssl s_client
also has trouble verifying the certificate, you know there's something wrong system-wide. If not, we can narrow it down to a pip or Python problem.