views:

2916

answers:

3

I am VERY new to python. I used libcurl with no problems and used pyCurl once in the past. Now i want to set it up on my machine and dev. However i have no idea how to do it. I rather not DL libcirl files and compile that along with pycurl, i want to know the simplest method. I have libcurl installed on my machine.

i'm on windows, i tried DLing the sources and use pycurl setup script, i had no luck.

A: 

Depends on platform. Here on ubuntu it's as simple as:

sudo aptitude install python-pycurl

It's common enough a package to think that most major Linux distributions will have it in their sources.

If you're on windows, you'll need cURL too. Then you can install pycurl which comes wrapped in an installer.

JosefAssad
A: 

As it has been said already, it depends on the platform.

In general, I prefer to use only the Python interpreter itself that is packaged for my OS and install everything else in a virtual environment, but this is a whole different story... If you've got setuptools installed, installing most Python packages is as simple as:

easy_install pycurl
paprika
i had no luck with this
acidzombie24
This is not very descriptive...In case you had trouble installing setuptools, check out my answer again, I edited the link to point to pypi (Python Package Index), that page also has instructions for installing setuptools on Windows.Good luck!
paprika
That is what I get after installing curl in Windows, when I try to easy_install pycurl : AssertionError: please check CURL_DIR in setup.py
Guido
I finally download it and manually installed it instead of using easy_install.
Guido
+4  A: 

According to http://bazaar-vcs.org/PyCurl

Since Windows does not come with neither cURL or pycURL, Windows users will have to install both.

cURL downloads: http://curl.haxx.se/download.html.

pycURL downloads: http://pycurl.sourceforge.net/download/.

Both links contain Linux (and other *Nix) tarballs/packages and Windows installer files.

There are windows installers at both links, hopefully they will work for you.

Ryan