Questions tagged [pip]
Use for questions about the Python package installer but not about Picture-in-Picture
24,197
questions
2802
votes
62
answers
1.9m
views
How to upgrade all Python packages with pip
Is it possible to upgrade all Python packages at one time with pip?
Note: that there is a feature request for this on the official issue tracker.
2756
votes
40
answers
3.5m
views
How do I install pip on Windows?
pip is a replacement for easy_install. But should I install pip using easy_install on Windows? Is there a better way?
1981
votes
12
answers
2.8m
views
Installing specific package version with pip
I am trying to install version 1.2.2 of MySQL_python, using a fresh virtualenv created with the --no-site-packages option. The current version shown in PyPi is 1.2.3. Is there a way to install the ...
1837
votes
17
answers
3.0m
views
How can I install packages using pip according to the requirements.txt file from a local directory?
Here is the problem:
I have a requirements.txt file that looks like:
BeautifulSoup==3.2.0
Django==1.3
Fabric==1.2.0
Jinja2==2.5.5
PyYAML==3.09
Pygments==1.4
SQLAlchemy==0.7.1
South==0.7.3
amqplib==0.6....
1671
votes
21
answers
3.0m
views
How do I install pip on macOS or OS X?
I spent most of the day yesterday searching for a clear answer for installing pip (package manager for Python). I can't find a good solution.
How do I install it?
1522
votes
55
answers
1.3m
views
pg_config executable not found
I am having trouble installing psycopg2. I get the following error when I try to pip install psycopg2:
Error: pg_config executable not found.
Please add the directory containing pg_config to the ...
1305
votes
34
answers
1.5m
views
How do I remove all packages installed by pip?
How do I uninstall all packages installed by pip from my currently activated virtual environment?
1263
votes
19
answers
2.5m
views
How do I install a Python package with a .whl file?
I'm having trouble installing a Python package on my Windows machine, and would like to install it with Christoph Gohlke's Window binaries. (Which, to my experience, alleviated much of the fuss for ...
1260
votes
34
answers
1.9m
views
How do I get a list of locally installed Python modules?
How do I get a list of Python modules installed on my computer?
1181
votes
16
answers
1.5m
views
Find which version of package is installed with pip
Using pip, is it possible to figure out which version of a package is currently installed?
I know about pip install XYZ --upgrade but I am wondering if there is anything like pip info XYZ. If not ...
1176
votes
9
answers
970k
views
pip install from git repo branch
Trying to pip install a repo's specific branch. Google tells me to
pip install https://github.com/user/repo.git@branch
The branch's name is issue/34/oscar-0.6 so I did pip install https://github.com/...
1120
votes
15
answers
559k
views
What is the difference between pip and conda?
I know pip is a package manager for python packages. However, I saw the installation on IPython's website use conda to install IPython.
Can I use pip to install IPython? Why should I use conda as ...
977
votes
9
answers
243k
views
Why use pip over easy_install?
A tweet reads:
Don't use easy_install, unless you
like stabbing yourself in the face.
Use pip.
Why use pip over easy_install? Doesn't the fault lie with PyPI and package authors mostly? If an ...
951
votes
24
answers
700k
views
pip install mysql-python fails with EnvironmentError: mysql_config not found
This is the error I get
(mysite)zjm1126@zjm1126-G41MT-S2:~/zjm_test/mysite$ pip install mysql-python
Downloading/unpacking mysql-python
Downloading MySQL-python-1.2.3.tar.gz (70Kb): 70Kb downloaded
...
950
votes
23
answers
2.5m
views
How do I update/upgrade pip itself from inside my virtual environment?
I'm able to update pip-managed packages, but how do I update pip itself? According to pip --version, I currently have pip 1.1 installed in my virtualenv and I want to update to the latest version.
...
878
votes
43
answers
962k
views
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:
...
876
votes
10
answers
1.2m
views
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 ...
863
votes
30
answers
653k
views
How to list all available package versions with pip?
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 ...
799
votes
11
answers
457k
views
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 ...
787
votes
10
answers
1.2m
views
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 ...
771
votes
12
answers
1.4m
views
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 ...
737
votes
30
answers
1.1m
views
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.
...
735
votes
61
answers
2.2m
views
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 ...
727
votes
37
answers
751k
views
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=...
715
votes
61
answers
973k
views
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 ...
699
votes
23
answers
2.0m
views
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?
692
votes
19
answers
1.1m
views
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 ...
658
votes
11
answers
1.3m
views
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:
...
656
votes
39
answers
2.2m
views
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 <lib you want> but before it even tries to find ...
636
votes
39
answers
934k
views
No module named pkg_resources
I'm deploying a Django app to a dev server and am hitting this error when I run pip install -r requirements.txt:
Traceback (most recent call last):
File "/var/www/mydir/virtualenvs/dev/bin/pip", ...
611
votes
20
answers
1.1m
views
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 ...
582
votes
42
answers
2.9m
views
'pip' is not recognized as an internal or external command
I'm running into a weird error when trying to install Django on my computer.
This is the sequence that I typed into my command line:
C:\Python34> python get-pip.py
Requirement already up-to-date: ...
568
votes
17
answers
449k
views
Is it possible to use pip to install a package from a private GitHub repository?
I am trying to install a Python package from a private GitHub repository. For a public repository, I can issue the following command which works fine:
pip install git+git://github.com/django/django....
542
votes
14
answers
840k
views
Installing Python packages from local file system folder to virtualenv with pip
Is it possible to install packages using pip from the local filesystem?
I have run python setup.py sdist for my package, which has created the appropriate tar.gz file. This file is stored on my ...
512
votes
13
answers
592k
views
How can I Install a Python module within code?
I need to install a package from PyPI straight within my script.
Is there maybe some module or distutils (distribute, pip, etc.) feature which allows me to just execute something like pypi.install('...
509
votes
38
answers
875k
views
setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 [closed]
When I try to install odoo-server, I got the following error:
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Could anyone help me to solve this ...
505
votes
32
answers
447k
views
Error after upgrading pip: cannot import name 'main'
Whenever I am trying to install any package using pip, I am getting this import error:
guru@guru-notebook:~$ pip3 install numpy
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in &...
494
votes
45
answers
783k
views
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
I am using Python 3.6. When I try to install "modules" using pip3, I face this issue:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
486
votes
14
answers
1.1m
views
How do I install the yaml package for Python?
I have a Python program that uses YAML. I attempted to install it on a new server using pip install yaml and it returns the following:
$ sudo pip install yaml
Downloading/unpacking yaml
Could not ...
476
votes
20
answers
1.0m
views
Using Pip to install packages to Anaconda Environment
conda 4.2.13
MacOSX 10.12.1
I am trying to install packages from pip to a fresh environment (virtual) created using anaconda. In the Anaconda docs it says this is perfectly fine. It is done the same ...
471
votes
33
answers
820k
views
How do I solve "error: externally-managed-environment" every time I use pip 3? [closed]
Error message:
error: externally-managed-environment
× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package ...
464
votes
30
answers
885k
views
Error "filename.whl is not a supported wheel on this platform"
I would like to install scipy-0.15.1-cp33-none-win_amd64.whl that I have saved to the local drive. I am using:
pip 6.0.8 from C:\Python27\Lib\site-packages
python 2.7.9 (default, Dec 10 2014, 12:28:03)...
448
votes
20
answers
247k
views
Reference requirements.txt for the install_requires kwarg in setuptools setup.py file
I have a requirements.txt file that I'm using with Travis-CI. It seems silly to duplicate the requirements in both requirements.txt and setup.py, so I was hoping to pass a file handle to the ...
441
votes
19
answers
449k
views
How to install python3 version of package via pip on Ubuntu?
I have both python2.7 and python3.2 installed in Ubuntu 12.04.
The symbolic link python links to python2.7.
When I type:
sudo pip install package-name
It will default install python2 version of ...
434
votes
4
answers
287k
views
How to pip install a package with min and max version range?
I'm wondering if there's any way to tell pip, specifically in a requirements file, to install a package with both a minimum version (pip install package>=0.2) and a maximum version which should ...
427
votes
1
answer
123k
views
Can I add comments to a pip requirements file?
I'd like to add comments for a few packages in a pip requirements file. (Just to explain why that package is on the list.) Can I do this?
I'm imagining something like
Babel==0.9.5 # translation
...
426
votes
19
answers
489k
views
Find all packages installed with easy_install/pip?
Is there a way to find all Python PyPI packages that were installed with easy_install or pip? I mean, excluding everything that was/is installed with the distributions tools (in this case apt-get on ...
416
votes
31
answers
1.4m
views
Error running 'pip install': "ImportError: No module named pip" [duplicate]
OS: Mac OS X 10.7.5 (Lion)
Python ver: 2.7.5
I have installed setuptools 1.0 with ez_setup.py from https://pypi.python.org/pypi/setuptools.
Then I downloaded pip.1.4.1 pkg from https://pypi.python....
409
votes
9
answers
632k
views
What is the purpose of "pip install --user ..."?
From pip install --help:
--user Install to the Python user install directory for your platform.
Typically ~/.local/, or %APPDATA%\Python on Windows.
(See the Python documentation for ...
407
votes
32
answers
1.2m
views
"pip install unroll": "python setup.py egg_info" failed with error code 1
I'm trying to install some packages with pip.
But pip install unroll gives me
Command "python setup.py egg_info" failed with error code 1 in
C:\Users\MARKAN~1\AppData\Local\Temp\pip-build-...