I would like to import urllib
to use the function 'request
'. However, I encountered an error when trying to download via Pycharm:
"Could not find a version that satisfies the requirement urllib (from versions: ) No matching distribution found for urllib"
I tried pip install urllib
but still had the same error. I am using Python 2.7.11. Really appreciate any help
urllib
is in the standard lib. It should be included and you don't need to install it.import urllib
works for me. Though,requests
is an entirely different library you can install.urllib.requests
(in python 3 the namespaces have been redone).