What is the official “preferred” way to install pip and virtualenv systemwide?

If you can install the latest Python (2.7.9 and up) Pip is now bundled with it. See: https://docs.python.org/2.7//installing/index.html If not : Update (from the release notes): Beginning with v1.5.1, pip does not require setuptools prior to running get-pip.py. Additionally, if setuptools (or distribute) is not already installed, get-pip.py will install setuptools for you. I now … Read more

How to install pip for python 2.6?

Just follow the instructions here: Securely download get-pip.py (this is the 2.6-specific file, link from Ricardo Iramar’s answer). In the directory you saved get-pip.py, run sudo python2.6 get-pip.py and you’ll be all set. This will install pip for Python 2.6, and won’t touch your version 2.7 installation.

pip ignores dependency_links in setup.py

This answer should help. In a nutshell, you need to specify the version (or “dev”) for the #egg=python-s3 so it looks like #egg=python-s3-1.0.0. Updates based on @Cerin’s comment: Pip 1.5.x has a flag to enable dependency-links processing: –process-dependency-links. I haven’t tested it because I agree with the point below. This discussion seems to indicate that … Read more

Installing SetupTools on 64-bit Windows

Problem: you have 64-bit Python, and a 32-bit installer. This will cause problems for extension modules. The reasons why the installer doesn’t finds Python is the transparent 32-bit emulation from Windows 7. 64-bit and 32-bit programs will write to different parts of the Windows registry. 64-bit: HKLM|HKCU\SOFTWARE\ 32-bit: HKLM|HKCU\SOFTWARE\wow6432node\. This means that the 64-bit Python … Read more

pip issue installing almost any library

I found it sufficient to specify the pypi host as trusted. Example: pip install –trusted-host pypi.python.org pytest-xdist pip install –trusted-host pypi.python.org –upgrade pip This solved the following error: Could not fetch URL https://pypi.python.org/simple/pytest-cov/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600) – skipping Could not find a version that … Read more

The problem with installing PIL using virtualenv or buildout

The PIL version packaged on pypi (by the author) is incompatible with setuptools and thus not easy_installable. People have created easy_installable versions elsewhere. Currently, you need to specify a find-links URL and use pip get a good package: pip install –no-index -f http://dist.plone.org/thirdparty/ -U PIL By using pip install with the –no-index you avoid running … Read more

How can I install various Python libraries in Jython?

Some Python modules, like lxml, have required components in C. These won’t work in Jython. Most Python packages will work fine, and you can install them using the same tools as you use in CPython. This is described in Appendix A of Jython Book: To get setuptools, download ez_setup.py from http://peak.telecommunity.com/dist/ez_setup.py. Then, go to the … Read more