Installing Pip on Msys

Please note that at this time the following command is now working on msys2:

$ pacman -S python3-pip
$ pip3 install --upgrade pip

To install pip, securely download get-pip.py.

Then run the following:

python get-pip.py

For more details refer: https://pip.pypa.io/en/stable/installing/


The accepted answer installs a new Python exectuable with pip, but without GTK support.

In order to install pip support to the existing GTK Python executable, after encountering that error, we need to run:

python -m pip install -U --force-reinstall pip

(taken from this issue)

To summarize the steps required to install Pip support to the GTK-Python executable:

  1. curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
  2. python get-pip.py
  3. (ignore the error from previous step)
  4. python -m pip install -U --force-reinstall pip