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.
More Related Contents:
- Removing Capitalized Strings from Input File in Python3.4?
- Python eval() not multiplying properly
- Python – concatenate NoneType and string in a new list
- Python evaluates the program without error, sum and average are correct but the product is always the same
- Import error: No module name urllib2
- What’s the correct way to convert bytes to a hex string in Python 3?
- zip variable empty after first use
- Python webbrowser.open() to open Chrome browser
- Beautiful Soup findAll doesn’t find them all
- What is __pycache__?
- Why does map return a map object instead of a list in Python 3?
- networkx – change color/width according to edge attributes – inconsistent result
- What is the purpose of collections.ChainMap?
- Python 3: How to specify stdin encoding
- Adding a data file in Pyinstaller using the onefile option
- Subtract a value from every number in a list in Python?
- How does a for loop evaluate its argument
- Priority of the logical operators (order of operations) for NOT, AND, OR in Python
- How to check if an object has an attribute in Python?
- Repeated MySQL queries from Python return the same data [duplicate]
- Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)
- What does it mean when the parentheses are omitted from a function or method call?
- How to implement barriers to stop the player moving through walls
- Disable hash randomization from within python program
- nargs=* equivalent for options in Click
- Python : The second for loop is not running
- How to use sys.exit() in Python
- Is there a way to use asyncio.Queue in multiple threads?
- How to add an element to the beginning of an OrderedDict?
- How to run Pylint with PyCharm