Hot answers tagged

146

Since version 1.3, pip features a new command: $ pip list --outdated requests (Current: 1.1.0 Latest: 1.2.0) See this post for more information.


71

One of three things will likely fix it: In case python3-pip did not install correctly, re-install it: This is used for Debian-based distros like Ubuntu, Mint: sudo apt-get remove python3-pip; sudo apt-get install python3-pip If using Fedora, CentOS, RHEL, please use: sudo dnf reinstall python3-pip Try using the command python3-pip instead (works on ...


32

If it is properly installed you can run python3 -m pip to run pip for Python 3. Installing pip for Python 3 is done with dnf install python3-pip. This should create the script /usr/bin/pip3. Using pip to upgrade pip itself (like it suggests, because the shipped version is older) overwrites the scripts and should not be done. If you want to use the newest ...


31

I could not run pip3 though my system showed python3-pip as already being installed and I'm using Fedora 22. What I did to get around this was re-install python3-pip like so: dnf reinstall python3-pip Doing the above adds the following entries in your /usr/bin folder: /usr/bin/pip3.4 /usr/bin/pip3 You'll need to be have sudo rights to run the above ...


29

You have to enable the EPEL repo, use: yum --enablerepo=extras install epel-release This command will install the correct EPEL repository for the CentOS version you are running. After this you will be able to install python-pip.


19

Generally, homebrew will install a formula into /usr/local/Cellar/formula and then place a link at /usr/local/bin/formula. To make use of your installed formulae, make sure /usr/local/bin is in your $PATH. Show your $PATH by typing echo $PATH If /usr/local/bin is not in your $PATH, put this line at the end of your ~/.profile file. export PATH="/usr/local/...


16

In some distribution easy_install not come with the default python. So, you to download it and install. #wget http://peak.telecommunity.com/dist/ez_setup.py #python ez_setup.py After installing the ez_setup.py, you can find the easy_install, using that you can install pip module as follow. #easy_install pip


15

Using this in the Dockerfile allowed me to install pip: RUN yum -y install epel-release && yum clean all RUN yum -y install python-pip && yum clean all That seems much cleaner than using an rpm or curl. If that still fails, try: RUN yum -y install --enablerepo="epel" python-pip && yum clean all


13

Following the pip installer documentation, one can simply issue the following: # install setup tools curl https://bitbucket.org/pypa/setuptools/downloads/ez_setup.py | python - # install pip curl https://bootstrap.pypa.io/get-pip.py | python -


13

It was simple. The path of pip is: /opt/python2.7/bin/pip If it's not there then install using: /opt/python2.7/bin/easy_install pip and it will install it.


13

There is a --yes option specifically for the uninstall command. Calling pip uninstall --yes <some-package> uninstalls the package without asking for confirmation. For installing, piping in the yes command still seems to be the way to go. Another approach that might be overkill depending on your use case is using a dedicated tool. This is definitely ...


10

I couldnt follow from previous answers to get easy_install. I followed the other commands to install pip. (requires sudo privileges) to install easy_install: sudo yum install python-setuptools python-setuptools-devel to install pip: sudo easy_install pip


9

Both setuptools (python-setuptools) and pip (python-pip) are in EPEL.


9

I had the same problem on Windows 7 64-bit; I solved it by installing the Cygwin packages pkg-config and libX11-devel before typing easy_install matplotlib==1.1.1 (the 1.3.1 version is having errors on my machine, hence the 1.1.1).


8

The main pypi index may be down or having problems. Try executing pip install --use-mirrors to automatically use backup mirrors. See pip install --help for details.


7

You need the required headers from the corresponding libraries: libjpeg, libpng, and others. Usually, you will need the dev packages for those libraries to have the headers. Nevertheless, installing PIL is usually pretty complicated as it often fails to detect the libraries. You should do pip install pillow instead. pillow is an installer for PIL, which ...


6

I don't use the EPD, but I had the same issue. It turned out Homebrew has a formula to install both wxWidget and wxPython. It works like a charm. Run the following command: brew install --python wxmac


5

I issued this command in CentOS 7 and it worked curl https://bootstrap.pypa.io/get-pip.py | python -


5

Any packages in the repos will be built for 2.4. You will need to install them from source with 2.7. python2.7 setup.py install


5

It seems automatically downloaded file corrupted. That is why ReadError: not a zip file To install cx_Oracle you also need instantclient from Oracle. If you want a easy way to install, i prepared a bundle some time ago python-cxoracle. Just copy the files for your Ubuntu version and add instantclient to ld.so.conf wget https://github.com/ozanturksever/...


5

I ran into this problem and found the solution. The python3-pip package installed a pip-3.2 binary. Executing pip-3.2 --version shows: pip 1.1 from /usr/lib/python3/dist-packages (python 3.2) Whereas python3-pip gives the command not found message. I tested it on a "clean" download from here: https://sourceforge.net/projects/rpiqemuwindows/ I checked ...


5

Did you check if you have pip.exe's parent directory added to your "Environment variables" paths? You can use this page to consult on how to check / change / add / delete environment variable paths. How to set the path and environment variables in Windows Basically what you have to do is Find pip.exe, which is most likely in C:\Python27\Scripts\pip.exe ...


5

If brew is managing your python install and pip is no longer symlinked (i.e. you type "which pip" and get no results) try this from your home directory: brew unlink python && brew link python Not sure if the old method works any more (it didn't on my machine). Now confirm it does indeed point to your 2.7 installation with pip --version (it will ...


5

pip does not provide this functionality. Hovewer, there is a cool package named yolk that can query PyPI repositories for metadata of available packages. Install it with $ pip2 install yolk or $ pip3 install yolk3k python2 users, beware: Looks like the original yolk package has now an issue with querying the PyPI packages. It may be due to the recent ...


4

Thing is, i never upgrade all packages. I upgrade only what I need, because project may break. Because there was no easy way for upgrading package by package, and updating the requirements.txt file, I wrote this pip-upgrader which also updates the versions in your requirements.txt file for the packages chosen (or all packages). Installation pip install ...


4

Making /Library/Python/2.7/site-packages/ world-executable with: sudo chmod -R 755 /Library/Python/2.7/site-packages worked for me.


4

You may have to install Python from the python.org website to get it.


4

I don't have a copy of pip to test it, but would the --download-cache <dir> option be of any help? From what I can tell in the docs, it will save downloaded files there, and use them. EDIT I installed pip, and I found a package that failed to install, and I tried to install it with --download-cache <dir>. I then re-ran the install, and in the ...


4

Not really an answer to the original question, but if anyone ends up here because their Homebrew-installed python/pip are no longer working (i.e. python points to the system python and pip is not found) then the reason might be a recent (summer 2017) change in the way Homebrew installs and links python. The solution is to add the following to ~/....


4

The problem is that you are entering pip in the wrong command line. You are entering it in the Python CLI whereas it has to be used in the regular Windows command line. Is pip intended to be used out of Python only? Yes, it is. In cmd you can use pip -V to see if it is really installed properly. You can then proceed by using the following command to ...


Only top voted, non community-wiki answers of a minimum length are eligible