I'm having an issue when running a python script, I'm getting below mentioned error
"ImportError: No module named pycurl"
I tried to resolve this by trying this command "sudo pip install pycurl" and I got this error
Downloading/unpacking pycurl Downloading pycurl-7.43.0.tar.gz (182kB): 182kB downloaded Running setup.py (path:/tmp/pip-build-vqUn8V/pycurl/setup.py) egg_info for package pycurl Traceback (most recent call last): File "", line 17, in File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 823, in ext = get_extension(sys.argv, split_extension_source=split_extension_source) File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 497, in get_extension ext_config = ExtensionConfiguration(argv) File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 71, in init self.configure() File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 107, in configure_unix raise ConfigurationError(msg) main.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory Complete output from command python setup.py egg_info: Traceback (most recent call last):
File "", line 17, in
File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 823, in
ext = get_extension(sys.argv, split_extension_source=split_extension_source)
File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 497, in get_extension
ext_config = ExtensionConfiguration(argv)
File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 71, in init
self.configure()
File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 107, in configure_unix
raise ConfigurationError(msg)
main.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-vqUn8V/pycurl
Storing debug log for failure in /root/.pip/pip.log
Are you running Debian? It worked for me after installing the following packages:
sudo apt install libcurl4-openssl-dev libssl-dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With