Installing Pip on Msys

后端 未结 3 1220
日久生厌
日久生厌 2021-02-13 17:46

I have built a simple PyGTK app using Python 3.5.2 and Msys but I need some modules not in the default installation, and although I could use setup.py install to ge

3条回答
  •  暖寄归人
    2021-02-13 18:01

    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

提交回复
热议问题