Error when trying to install pycurl
<p>I'm having an issue when running a python script, I'm getting below mentioned error</p>

<blockquote>
  <p>"ImportError: No module named pycurl"</p>
</blockquote>

<p>I tried to resolve this by trying this command "sudo pip install pycurl" and I got this error </p>

<blockquote>
  <p>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 <strong>init</strong>
          self.configure()
        File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 107, in configure_unix
          raise ConfigurationError(msg)
      <strong>main</strong>.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):</p>
  
  <p>File "", line 17, in </p>
  
  <p>File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 823, in </p>

<pre><code>ext = get_extension(sys.argv, split_extension_source=split_extension_source)
</code></pre>
  
  <p>File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 497, in
  get_extension</p>

<pre><code>ext_config = ExtensionConfiguration(argv)
</code></pre>
  
  <p>File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 71, in <strong>init</strong></p>

<pre><code>self.configure()
</code></pre>
  
  <p>File "/tmp/pip-build-vqUn8V/pycurl/setup.py", line 107, in
  configure_unix</p>

<pre><code>raise ConfigurationError(msg)
</code></pre>
  
  <p><strong>main</strong>.ConfigurationError: Could not run curl-config: [Errno 2] No such file or directory</p>
</blockquote>

<hr>

<blockquote>
  <p>Cleaning up...<br>
  Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-vqUn8V/pycurl<br>
  Storing debug log for failure in /root/.pip/pip.log</p>
</blockquote>