Run pip for python3 on Fedora

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 version of pip and and upgrade packages given by the fedora-repo to the ones from PyPI, I recommend using a virtual environment.


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 command. Now I'm able to just call pip3 right from my CLI.

Tags:

Python

Fedora

Pip