Questions tagged [pip]

Use for questions about the Python package installer but not about Picture-in-Picture

pip is the package installer for Python. You can use pip to install packages from the Python Package Index and other indexes. The name is a recursive acronym for "Pip Installs Packages".

It replaces easy_install and is an improved Python package installer. The differences between easy_install and pip can be found in a discussion on the Python Packaging User Guide.

Please do not use the tag for Picture-in-Picture, use instead.

23287 questions
876
votes
43 answers

error: Unable to find vcvarsall.bat

I tried to install the Python package dulwich: pip install dulwich But I get a cryptic error message: error: Unable to find vcvarsall.bat The same happens if I try installing the package manually: > python setup.py install running…
okada
  • 8,769
  • 3
  • 16
  • 4
816
votes
29 answers

Python and pip, list all versions of a package that's available?

Given the name of a Python package that can be installed with pip, is there any way to find out a list of all the possible versions of it that pip could install? Right now it's trial and error. I'm trying to install a version for a third party…
Amandasaurus
  • 58,203
  • 71
  • 188
  • 248
812
votes
10 answers

Can I force pip to reinstall the current version?

I've come across situations where a current version of a package seems not to be working and requires reinstallation. But pip install -U won't touch a package that is already up-to-date. I see how to force a reinstallation by first uninstalling…
orome
  • 45,163
  • 57
  • 202
  • 418
749
votes
10 answers

How to state in requirements.txt a direct github source

I've installed a library using the command pip install git+git://github.com/mozilla/elasticutils.git which installs it directly from a Github repository. This works fine and I want to have that dependency in my requirements.txt. I've looked at…
Alfe
  • 56,346
  • 20
  • 107
  • 159
725
votes
10 answers

Where does pip install its packages?

I activated a virtualenv which has pip installed. I did pip3 install Django==1.8 and Django successfully downloaded. Now, I want to open up the Django folder. Where is the folder located? Normally it would be in "downloads", but I'm not sure where…
SilentDev
  • 20,997
  • 28
  • 111
  • 214
718
votes
29 answers

Dealing with multiple Python versions and PIP?

Is there any way to make pip play well with multiple versions of Python? For example, I want to use pip to explicitly install things to either my site 2.5 installation or my site 2.6 installation. For example, with easy_install, I use…
David Wolever
  • 148,955
  • 89
  • 346
  • 502
706
votes
61 answers

TensorFlow not found using pip

I'm trying to install TensorFlow using pip: $ pip install tensorflow --user Collecting tensorflow Could not find a version that satisfies the requirement tensorflow (from versions: ) No matching distribution found for tensorflow What am I doing…
user6574649
702
votes
36 answers

How to install psycopg2 with "pip" on Python?

I'm using virtualenv and I need to install "psycopg2". I have done the following: pip install http://pypi.python.org/packages/source/p/psycopg2/psycopg2-2.4.tar.gz#md5=24f4368e2cfdc1a2b03282ddda814160 And I have the following…
André
  • 24,706
  • 43
  • 121
  • 178
680
votes
57 answers

pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"

I am very new to Python and trying to > pip install linkchecker on Windows 7. Some notes: pip install is failing no matter the package. For example, > pip install scrapy also results in the SSL error. Vanilla install of Python 3.4.1 included pip…
Jeremy Cook
  • 20,840
  • 9
  • 71
  • 77
676
votes
23 answers

How to install pip with Python 3?

I want to install pip. It should support Python 3, but it requires setuptools, which is available only for Python 2. How can I install pip with Python 3?
deamon
  • 89,107
  • 111
  • 320
  • 448
667
votes
19 answers

pip uses incorrect cached package version, instead of the user-specified version

I need to install psycopg2 v2.4.1 specifically. I accidentally did: pip install psycopg2 Instead of: pip install psycopg2==2.4.1 That installs 2.4.4 instead of the earlier version. Now even after I pip uninstall psycopg2 and attempt to…
Geuis
  • 41,122
  • 56
  • 157
  • 219
655
votes
10 answers

How to update/upgrade a package using pip?

What is the way to update a package using pip? those do not work: pip update pip upgrade I know this is a simple question but it is needed as it is not so easy to find (pip documentation doesn't pop up and other questions from stack overflow are…
borgr
  • 20,175
  • 6
  • 25
  • 35
639
votes
11 answers

How can I upgrade specific packages using pip and a requirements file?

I'm using pip with a requirements file, in a virtualenv, for my Django projects. I'm trying to upgrade some packages, notably Django itself, and I'm getting an error about source code conflicts: Source in /build/Django has version…
gcaprio
  • 6,447
  • 2
  • 17
  • 8
629
votes
39 answers

bash: pip: command not found

I downloaded pip and ran python setup.py install and everything worked just fine. The very next step in the tutorial is to run pip install but before it even tries to find anything online I get an error "bash: pip: command not…
Trindaz
  • 17,029
  • 21
  • 82
  • 111
588
votes
19 answers

Install a Python package into a different directory using pip?

I know the obvious answer is to use virtualenv and virtualenvwrapper, but for various reasons I can't/don't want to do that. So how do I modify the command pip install package_name to make pip install the package somewhere other than the default…
Monika Sulik
  • 16,498
  • 15
  • 50
  • 52