I am trying to download NLTK 3.0 for use with Python 3.6 on Mac OS X 10.7.5, but am getting an SSL error:
import nltk
nltk.download()
Please see answer by @doctorBroctor. It is more correct and safer to use. Leaving answer below as it might be useful for something else.
https://stackoverflow.com/a/42890688/1167890
This will work by disabling SSL checking.
import nltk
import ssl
try:
_create_unverified_https_context = ssl._create_unverified_context
except AttributeError:
pass
else:
ssl._create_default_https_context = _create_unverified_https_context
nltk.download()