How can I install pyCurl?

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 am on Windows. I tried DLing the sources and use pycurl setup script, but I had no luck.


Asked by: Roman648 | Posted: 06-12-2021






Answer 1

TL,DR

Get a binary from this website: http://www.lfd.uci.edu/~gohlke/pythonlibs/

Direct links: 2.6 32bit, 2.7 32bit,2.6 64bit, 2.7 64bit


For pycURL, both pip and easy_install will fail on Windows.

I also tried to download and install the pycURL package manually, after downloading cURL, but that didn't work either, even if specifying the CURL_DIR ( it complained that it cannot find 'lib\libcurl.lib' ). From what I can gather from the README, what it needs in the CURL_DIR is the source distribution of cURL, not the executable.

Downloading the precompiled version from the official pycURL repository will probably get you nowhere, because it requires Python 2.5. It will not work with 2.6.

The only easy way at the moment seems to be this unofficial release. It an executable installer, and I have used it without any issues with Python 2.6. A version for Python 2.7 is available from the same site.


You might also want to consider using requests, a popular alternative to pycURL. It's a pleasure to use, and is actively developed.

Answered by: John505 | Posted: 07-01-2022



Answer 2

You can try to download pycurl from here

http://www.lfd.uci.edu/~gohlke/pythonlibs/

PycURL is a interface to the libcurl library.
pycurl-7.19.0.win-amd64-py2.6.‌exe [863 KB] [Python 2.6] [64 bit] [Dec 09, 2010]
pycurl-7.19.0.win-amd64-py2.7.‌exe [863 KB] [Python 2.7] [64 bit] [Dec 09, 2010]
pycurl-7.19.0.win32-py2.6.‌exe [764 KB] [Python 2.6] [32 bit] [Dec 09, 2010]
pycurl-7.19.0.win32-py2.7.‌exe [764 KB] [Python 2.7] [32 bit] [Dec 09, 2010]

or here

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

pycurl-ssl-7.15.5.1.win32-py2.4.exe 02-Oct-2006 10:10 534K precompiled win32 installer (with openssl-0.9.8c, zlib-1.2.3, c-ares-1.3.1)
pycurl-ssl-7.15.5.1.win32-py2.5.exe 02-Oct-2006 10:10 534K precompiled win32 installer (with openssl-0.9.8c, zlib-1.2.3, c-ares-1.3.1)
pycurl-ssl-7.16.4.win32-py2.4.exe 05-Sep-2007 19:28 546K precompiled win32 installer (with openssl-0.9.8e, zlib-1.2.3, c-ares-1.4.0)
pycurl-ssl-7.16.4.win32-py2.5.exe 05-Sep-2007 19:27 546K precompiled win32 installer (with openssl-0.9.8e, zlib-1.2.3, c-ares-1.4.0)
pycurl-ssl-7.18.2.win32-py2.5.exe 17-Jun-2008 20:43 540K precompiled win32 installer (with openssl-0.9.8h, zlib-1.2.3)

Answered by: Kimberly181 | Posted: 07-01-2022



Answer 3

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

sudo apt-get 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.

Answered by: Julian571 | Posted: 07-01-2022



Answer 4

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.

Answered by: Joyce490 | Posted: 07-01-2022



Answer 5

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

Answered by: Roland715 | Posted: 07-01-2022



Answer 6

My environment is Windows 7 and Python 2.7. Although my Windows 7 is 64-bit, my Python 2.7 is 32-bit.

I had success by visiting http://pycurl.sourceforge.net/download/ and downloading and running pycurl-7.19.3.win32-py2.7.msi.

Answered by: Grace569 | Posted: 07-01-2022



Answer 7

sudo apt install libcurl4-openssl-dev libssl-dev
pip install pycurl

Answered by: Maddie105 | Posted: 07-01-2022



Answer 8

Windows: python 3.7.1 Download .msi from https://dl.bintray.com/pycurl/pycurl/ and install, it works perfectly.

Answered by: Richard232 | Posted: 07-01-2022



Similar questions

python - How do I install pyCurl?

I tried everything! I cannot find a way to install pyCurl on my Windows 7 machine! I found these binaries link... BUT there are no binaries for 2.6. : ( Help would be great. : )


python - Cannot install pycurl on Mac OS X - get errors 1 and 2

I am attempting to install pycurl-7.19.0 on my Mac OSX 10.8.4. The error I get when compiling: py setup.py install The results: Using curl-config (libcurl 7.24.0) running install running build running build_py running build_ext building 'pycurl' extension clang -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe -fno-common -fno-strict- aliasing -fwrapv -m...


python - Can't install pycurl with pip

Can't install pycurl with pip, win xp x32, python 2.7. here is the log pip install pycurl Downloading/unpacking pycurl Downloading pycurl-7.19.3.1.tar.gz (116Kb): 116Kb downloaded Running setup.py egg_info for package pycurl Please specify --curl-dir=/path/to/built/libcurl Complete output from command python setup.py egg_info: Please specify --curl-dir=/path/to/built/libcurl -------...


python - how to install pycurl 7.43 at ubuntu 18.04 64bit

Help me, all I have some error while installation of pycurl on ubuntu 18,04 I tried follow as: apt-cache depends python-pycurl sudo apt install libcurl4-gnutls-dev apt-cache search gnutl | grep dev sudo apt-get install libgnutls-dev sudo apt install python-pycurl pip install pycurl but, failed to install. Thanks!


python - Cant install PyCurl

i tried to install py curl but i get this error... pip install pycurl Collecting pycurl Using cached pycurl-7.43.0.6.tar.gz (222 kB) ERROR: Command errored out with exit status 10: command: 'c:\users\lequi\appdata\local\programs\python\python38-32\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lequi\\AppData\\Local\\Temp\\pip-install-vgtj42e_\\pycurl\\set...


python - where does django install in ubuntu

I am looking for the init.py file for django. I tried whereis and find, but I get a lot of dirs.


Install python 2.6 in CentOS

I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt which is where I want it to end ...


What should I install in order to be able to use GTK in Python on Ubuntu?

In my source code I have: import gtk But when I run the script with python3 script.py command I get the following error. What package should I install to get it working? Edit: my bad. here is the error: ImportError: No module named gtk Edit2: Thanks for the answer, kaizer.se. But I'm still getting an error message. Take a look at the following...


install python Mysql module

I've just installed python 2.6 on my win7 machine. Now I tried to install mysqldb. But when run "python setup.py install" C:\MySQL-python-1.2.3c1>python setup.py install Traceback (most recent call last): File "setup.py", line 15, in <module> metadata, options = get_config() File "C:\MySQL-python-1.2.3c1\setup_windows.py", line 7, in get_config serverKey = _winreg.OpenKey(_winreg....


boost - I've got Python built using VS2008, how do I install it?

I'm working with boost::python and wanted to build the whole thing to make sure I can pull it off. However, I don't see any install script or way to build the MSI so I can install it. Anyone know where the directions are? Or the projects I could use to make an MSI file? Doing this on linux seems trivial: make install How do I do this under windows


python - Error install PyGtk

I tried to install pygtk on mac. I downloaded the pygtk file, opened up terminal and set it to my working directory, then ran the command "python setup.py install". There was an import error because there was no module dsextras. Does anyone know how to install pygtk on a mac or get dsextras.


python - How do I install boto?

So that I am able to work with it within my python scripts?


python - How do I install pyCurl?

I tried everything! I cannot find a way to install pyCurl on my Windows 7 machine! I found these binaries link... BUT there are no binaries for 2.6. : ( Help would be great. : )


python - What is paster and how do I install it?

I am installing an application and have installed python and easy_install. I now have two steps to complete: 5. Make a config file as follows:: paster make-config openbiblio development.ini 6. Tweak the config file as appropriate and then setup the application:: paster setup-app config.ini I have read Stackoverflow answers and tried the web but cannot f...


How to install SSL for python 2.5 on Debian Linux?

Question How do I install SSL for Python 2.5 on Debian? I have tried: sudo easy_install ssl But getting: $ python setup.py build looking for /usr/include/openssl/ssl.h looking for /usr/include/krb5.h running build running build_py running build_ext building 'ssl._ssl2' extension creating build/temp.linux-i686-2.5 creating build/temp.linux-i686-2.5/ssl gcc ...


macos - python install on leopard

I'll admit I'm completely dumbed by python install. Can someone help me on how to install module I want to play with PyGame, PyOpenGL etc. So I install them, but I everytime I type "import pygame" error message shows up. here's my environment so far. In .bash_profile PATH=${PATH}:/System/Library/Frameworks/Python.framework/Versions/Current/bin Using easy_install PyO...


python - where does django install in ubuntu

I am looking for the init.py file for django. I tried whereis and find, but I get a lot of dirs.


python - Install mysqldb on snow leopard

I am trying to get started on working with Python on Django I am by profession a PHP developer and have been told to set up django and python on my current apache and mysql setup however I am having trouble getting the Mysqldb module for python to work, I must of followed about 6 different set of instructions, I am running snow leopard and have mysql installed natively it is not part of MAMP or similar. Please can some tel...


Install python 2.6 in CentOS

I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it, and did a ./configure --prefix=/opt which is where I want it to end ...


How to install 64-bit Python on Solaris?

I am trying to install Python 2.6 on Solaris by building the source on Solaris machine. I installed one this way and it appears that it is 32-bit. I downloaded some source tar ball as Linux or Unix for this purpose. Everything works well but I need 64-bit Python. I looked up the Python download site and there is no sepa...


macos - Install PyObjC on Python 2.6 on OS X 10.5?

OS X 10.5.8 came with Python 2.5, and had PyObjC already installed. I installed Python 2.6 from the python.org site, and PyObjC isn't there. I can't find a download to install PyObjC on my Python 2.6 install. Is checking out the PyObjC trunk and trying to build it my only choice? Will that work "out of the box"?


python - How to install numpy and scipy on Windows XP


python - How do I install SciPy on 64 bit Windows?

How do I install SciPy on my system? For the NumPy part (that SciPy depends on) there is actually an installer for 64 bit Windows: numpy-1.3.0.win-amd64-py2.6.msi (is direct download URL, 2310144 bytes). Running the SciPy superpack installer results in this message in a dialog box:...


What should I install in order to be able to use GTK in Python on Ubuntu?

In my source code I have: import gtk But when I run the script with python3 script.py command I get the following error. What package should I install to get it working? Edit: my bad. here is the error: ImportError: No module named gtk Edit2: Thanks for the answer, kaizer.se. But I'm still getting an error message. Take a look at the following...


python - How to install pycairo on osx?

I am trying to install the pycairo (Python bindings for the cairo graphics library) under OSX. I started with easy_install pycairo and got: Requested 'cairo >= 1.8.8' but version of cairo is 1.0.4 error: Setup script exited with Error: cairo...






Still can't find your answer? Check out these communities...



PySlackers | Full Stack Python | NHS Python | Pythonist Cafe | Hacker Earth | Discord Python



top