So I am trying to install the python package http_client or httplib on Windows 10 using Python3.7.3. But when I try to do this it returns an error that sort of tells me that libcurl is not installed.
I have googled the question and it the community just seems to say "install libcurl". Not helpful.
The error shows as follows:
cwd: C:\Users\user\AppData\Local\Temp\pip-install-fo_wbpht\pycurl\
Complete output (1 lines):
Please specify --curl-dir=/path/to/built/libcurl
----------------------------------------
ERROR: Command errored out with exit status 10: python setup.py egg_info Check the logs for full command output.
I am expecting it to just say "successfully installed" but instead get this error which I can't fix. Any help is really appreciated!
Turns out this was to do with my permission settings set by my company. Issue resolved by white-listing the file for python.
import httplib ImportError: No module named httplib
You are running Python 2 code on Python 3. In Python 3, the module has been renamed to
http.client
.
Also, try looking for packages that have Windows support and follow their installation steps for Windows.
Look at possibly easier modules to install:
How to install requests module in python 3.4 version on windows?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.