newbie: cant install pycurl inside virtualenv

1,998 views
Skip to first unread message

ronbeltran

unread,
Sep 15, 2010, 2:09:07 AM9/15/10
to Tornado Web Server
Im using ubuntu lucid, i've installed simplejson and tornado inside
virtualenv with:
pip install simplejson tornado
but cant install pycurl
pip install pycurl wont work

what libcurl do I need to install ?

成吉

unread,
Sep 15, 2010, 5:31:51 AM9/15/10
to python-...@googlegroups.com
Is the error bellow?
  Downloading pycurl-7.19.0.tar.gz (71Kb): 71Kb downloaded
  Running setup.py egg_info for package pycurl
    Using curl directory: c:\src\build\pycurl\curl-7.16.2.1
    Traceback (most recent call last):
      File "<string>", line 14, in <module>
      File "E:\Project\PHPWebProject\ABChina\build\pycurl\setup.py", line 69, in <module>
        assert os.path.isdir(CURL_DIR), "please check CURL_DIR in setup.py"
    AssertionError: please check CURL_DIR in setup.py
    Complete output from command python setup.py egg_info:
    Using curl directory: c:\src\build\pycurl\curl-7.16.2.1

Traceback (most recent call last):

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

  File "E:\Project\PHPWebProject\ABChina\build\pycurl\setup.py", line 69, in <module>

    assert os.path.isdir(CURL_DIR), "please check CURL_DIR in setup.py"

AssertionError: please check CURL_DIR in setup.py



2010/9/15 ronbeltran <rbbelt...@gmail.com>

Felinx Lee

unread,
Sep 15, 2010, 5:38:09 AM9/15/10
to python-...@googlegroups.com
Try this one.
# for libcurl dependence
apt-get install curl libcurl3-dev

# then install pycurl according the libcurl3 version, eg. 7.19.0
easy_install pycurl=='7.19.0'
--
Felinx Lee

What powered sites?
http://poweredsites.org

What can change the nature of a man?(Planescape Torment)
http://en.wikipedia.org/wiki/Planescape:_Torment

ronbeltran

unread,
Sep 16, 2010, 3:32:51 AM9/16/10
to Tornado Web Server
libcurl is already installed. Looking at the error log the error says
Python.h is missing. I tried apt-get install python-dev and pip
install pycurl.
works.

On Sep 15, 5:38 pm, Felinx Lee <felinx....@gmail.com> wrote:
> Try this one.
>
> # for libcurl dependence
> apt-get install curl libcurl3-dev
>
> # then install pycurl according the libcurl3 version, eg. 7.19.0
> easy_install pycurl=='7.19.0'
>
> On Wed, Sep 15, 2010 at 2:09 PM, ronbeltran <rbbeltran...@gmail.com> wrote:
> > Im using ubuntu lucid, i've installed simplejson and tornado inside
> > virtualenv with:
> > pip install simplejson tornado
> > but cant install pycurl
> > pip install pycurl wont work
>
> > what libcurl do I need to install ?
>
> --
> Felinx Lee
>
> What powered sites?http://poweredsites.org
Reply all
Reply to author
Forward
0 new messages