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

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

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

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

Can I use `pip` instead of `easy_install` for `python setup.py install` dependency resolution?

Yes you can. You can install a package from a tarball or a folder, on the web or your computer. For example: Install from tarball on web pip install https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz Install from local tarball wget https://pypi.python.org/packages/source/r/requests/requests-2.3.0.tar.gz pip install requests-2.3.0.tar.gz Install from local folder tar -zxvf requests-2.3.0.tar.gz cd requests-2.3.0 pip install . You can delete the … Read more

ImportError: No module named Crypto.Cipher

I had the same problem on my Mac when installing with pip. I then removed pycrypto and installed it again with easy_install, like this: pip uninstall pycrypto easy_install pycrypto also as Luke commented: If you have trouble running these commands, be sure to run them as admin (sudo) Hope this helps! EDIT: As winklerr correctly … Read more

How to install packages offline?

On the system that has access to internet The pip download command lets you download packages without installing them: pip download -r requirements.txt (In previous versions of pip, this was spelled pip install –download -r requirements.txt.) On the system that has no access to internet Then you can use pip install –no-index –find-links /path/to/download/dir/ -r … Read more