Skip to content

Instantly share code, notes, and snippets.

@fanyang89
Created March 18, 2024 02:03
Show Gist options
  • Save fanyang89/0d2859d9464fc6fad0eb40b8c90d0103 to your computer and use it in GitHub Desktop.
Save fanyang89/0d2859d9464fc6fad0eb40b8c90d0103 to your computer and use it in GitHub Desktop.
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.set_proxy("socks5://127.0.0.1:7890")
nltk.download()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment