Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install http module in python 3.7

While trying to install http module using pip I am getting below error and not able to solve it.

pip install http

ImportError: cannot import name 'Request' from 'request' (/Users/..../venv/lib/python3.7/site-packages/request/__init__.py)
like image 586
conetfun Avatar asked Mar 09 '19 09:03

conetfun


People also ask

How do I install Python 3.7 modules?

The best and recommended way to install Python modules is to use pip, the Python package manager. Otherwise: Download get-pip.py from https://bootstrap.pypa.io/get-pip.py. Run python get-pip.py.

How do I fix SSL module is not available in Python?

The problem can be caused by DLLs in the Windows\System32 folder (e.g. libcrypto-1_1-x64. dll or libssl-1_1-x64. dll or others) placed there by other software. The fix was installing openSSL from https://slproweb.com/products/Win32OpenSSL.html which replaces the dlls by more recent versions.

How do I fix pip module not found?

The Python "ModuleNotFoundError: No module named 'pip'" occurs when pip is not installed in our Python environment. To solve the error, install the module by running the python -m ensurepip --upgrade command on Linux or MacOS or py -m ensurepip --upgrade on Windows.

How do I install a Python 3.9 module?

Once the path is added, open a fresh CMD window and type pip --version . Show activity on this post. I found that for Python 3.9 if you enter the command as py -m pip install , the installation initiates as expected.


1 Answers

It's already present in python 3.7 (https://docs.python.org/3.7/library/http.html). You don't need to install it

like image 144
Devesh Kumar Singh Avatar answered Sep 25 '22 05:09

Devesh Kumar Singh