import httplib ImportError: No module named httplib
Solution 1:
You are running Python 2 code on Python 3. In Python 3, the module has been renamed to http.client
.
You could try to run the 2to3
tool on your code, and try to have it translated automatically. References to httplib
will automatically be rewritten to use http.client
instead.
Solution 2:
you can just import http.client and rename it to httplib with this code :
import http.client as httplib