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?
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