Installing Pip-3.2 on Cygwin

前端 未结 6 1117
南笙
南笙 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 17:06

    On windows, you can use pip to install packages. If you have multiple python installations under cygwin, give the full python path e.g. Python 2

    /usr/bin/python2.7 -m pip install pyyaml
    

    Python 3

    /usr/bin/python3.6 -m pip install pyyaml
    

    In case you dont have pip installed install it using below command

    /usr/bin/python2.7 -m ensurepip 
    

    or

    /usr/bin/python3.6 -m ensurepip
    

提交回复
热议问题