Installing Pip-3.2 on Cygwin

前端 未结 6 1116
南笙
南笙 2020-12-07 16:31

I have Python 3 installed on Cygwin. However, I am unable to install Python 3 packages via pip. Is there a way to do this?

6条回答
  •  时光说笑
    2020-12-07 16:48

    If you have more than one python installation, then you need to install pip (and probably also setuptools) for each installation separately.
    To do so, you can first download ez_setup.py and run it with python3:

    /usr/bin/python3 ez_setup.py
    

    That should install setuptools, and also create an easy_install script for your python version, e.g. /usr/bin/easy_install-3.2, which you can use to install pip:

    /usr/bin/easy_install-3.2 pip
    

    This will install pip into your python3 site packages directory, and again create a script /usr/bin/pip-3.2, which you can use to install packages for this python version.

    Alternatively you can follow the install instructions from here and here.

提交回复
热议问题