Monday, 8 July 2013

Install pyCurl

Install pyCurl in your virtual environment

 

An issue is coming while installing pyCurl to virtualenv so here is the solution for the same.

By following these steps, its possible to overcome from this problem

Here we gooo..........

(pyenv)anupam@anupampc:~/workspace/rocksocialrest$ pip install pycurl
Downloading/unpacking pycurl
  Downloading pycurl-7.19.0.tar.gz (71kB): 71kB downloaded
  Running setup.py egg_info for package pycurl
    sh: 1: curl-config: not found
    Traceback (most recent call last):
      File "<string>", line 16, in <module>
      File "/home/anupam/workspace/rocksocialrest/pyenv/build/pycurl/setup.py", line 90, in <module>
        raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)
    Exception: `curl-config' not found -- please install the libcurl development files
    Complete output from command python setup.py egg_info:
    sh: 1: curl-config: not found

Traceback (most recent call last):

  File "<string>", line 16, in <module>

  File "/home/anupam/workspace/rocksocialrest/pyenv/build/pycurl/setup.py", line 90, in <module>

    raise Exception, ("`%s' not found -- please install the libcurl development files" % CURL_CONFIG)

Exception: `curl-config' not found -- please install the libcurl development files

----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/anupam/workspace/rocksocialrest/pyenv/build/pycurl
Storing complete log in /home/anupam/.pip/pip.log


(pyenv)anupam@anupampc:~/workspace/rocksocialrest$ apt-cache depends python-pycurl
python-pycurl
  Depends: libc6
  Depends: libcurl3-gnutls
  Depends: libgcrypt11
  Depends: python2.7
  Depends: python
  Depends: python
  Suggests: libcurl4-gnutls-dev
  Suggests: python-pycurl-dbg
  Conflicts: <python2.3-pycurl>
  Conflicts: <python2.3-pycurl:i386>
  Conflicts: <python2.4-pycurl>
  Conflicts: <python2.4-pycurl:i386>
  Replaces: <python2.3-pycurl>
  Replaces: <python2.3-pycurl:i386>
  Replaces: <python2.4-pycurl>
  Replaces: <python2.4-pycurl:i386>
  Conflicts: python-pycurl:i386 
 

(pyenv)anupam@anupampc:~/workspace/rocksocialrest$ sudo apt-get install libcurl4-gnutls-dev

then pip install pycurl

1 comment: