I need step by step instructions on how to download and import pynput into python 3.6 on Mac Os.
Asked
Active
Viewed 656 times
1
-
Have you tried [`pip install pynput`](https://pypi.org/project/pynput/)? – C.Nivs Apr 10 '19 at 14:29
-
Unfortunately yes, thats when I got this error. Could not find a version that satisfies the requirement pynput (from versions: ) No matching distribution found for pynput – newatthis Apr 10 '19 at 14:38
-
running `pip install pynput` installs `pynput-1.4.2` on my mac running High Sierra, anaconda python version 3.6. Can you paste what you ran in your question? – C.Nivs Apr 10 '19 at 21:03
-
MacBook-Air-2:~ verdenstudent1509$ pip install pynput Collecting pynput Could not fetch URL https://pypi.python.org/simple/pynput/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSION] tlsv1 alert protocol version (_ssl.c:661) - skipping Could not find a version that satisfies the requirement pynput (from versions: ) No matching distribution found for pynput – newatthis Apr 12 '19 at 14:11
1 Answers
0
The SSL error that pip is reporting hints that your version of pip might be out of date, since its referencing TLS v1 being used and Python.org has deprecated use of TLS v1 in their ssl library (search for PROTOCOL_TLSv1 on that page).
Check your pip version with:
pip --version
If your version is older than 9.0.3
its time to upgrade (see here for why).
Upgrade using:
curl https://bootstrap.pypa.io/get-pip.py | python
These SO questions also touch on this:
And as a final bit of advice, I recommend learning about pyenv and pipenv for managing python projects with different dependencies on interpreter versions and libraries. Here's a good read as to why you might want these in your life. Best of luck!

780Farva
- 176
- 1
- 9