I am trying to install the urllib2 module for python 2.7 (I, as usual, use the pip install command), but I have an error
No suitable distribution found for urllib2 ..
What should I do?
You do not need to specify urlib / urllib2
In Python 2.7 , urllib and urllib2 comes with python.
import urllib
OR
import urllib2
In Python 3+, urllib2 is replaced with urllib.request.
import urllib.request as urllib2
Source: https://habr.com/ru/post/1014081/More articles:Generate CSS pseudo-content for dynamic use before and after using Angularjs - jqueryto find out a long-term solution for sharing files and distributing documents from the classroom to all students - databaseFunction context after use with Meteor.bindEnvironment? - javascriptWhat does the colon inside the parameter mean? - pythonWhy do I get a โwarning: already initialized constant JSON :: VERSIONโ when starting a grabber cucumber? - ruby โโ| fooobar.comUnable to run binary from python aws lambda function - pythonFirebase: a clean way to use enum fields in Kotlin / Java? - javafirebase db: models with transferred properties of Kotlin - androidCreating strings of full-precision arrays - stringIs it possible to call Rx extension methods with lambdas from within an IronPython script? - linqAll Articles