Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing pycurl on mac

I am very new to python and need help installing the pycurl library on my machine. I am running python 2.7 at the moment. A brief tutorial would be much appreciated.

like image 447
user3264845 Avatar asked Feb 03 '14 07:02

user3264845


People also ask

What is Python3 PycURL?

PycURL is a Python interface to libcurl. PycURL can be used to fetch objects identified by a URL from a Python program, similar to the urllib Python module. PycURL is mature, very fast, and supports a lot of features.

Does PycURL work in Windows?

This script is used to build official PycURL Windows packages. You can use it to build a full complement of packages with your own options or modify it to build a single package you need. Prerequisites: Git for Windows.

Why use PycURL?

PycURL makes it possible to take advantage of I/O multiplexing via the libcurl multi interface. PycURL supports many protocols, not just HTTP. PycURL generally provides more features, for example ability to use several TLS backends, more authentication options, etc.


2 Answers

Use one of the two methods

Method 1: sudo easy_install pycurl

Method 2: pip install pycurl

like image 56
Mysterio Man Avatar answered Oct 08 '22 07:10

Mysterio Man


Try specify the ARCHFLAGS env var:

ARCHFLAGS="-arch x86_64" pip install pycurl==7.19.5.1
like image 25
Vladimir Avatar answered Oct 08 '22 06:10

Vladimir