Mysterio Man
Mysterio Man

Reputation: 1727

Error when Installing Pycurl on OS X

I am trying to install pycurl on OS X Mavericks. I have downloaded and installed the Xcode dev tools to have some compiler. I went into the Xcode preferences and made sure that I have downloaded all the compliers I would need but still getting this error

When I try to install pycurl I get the following errors. Any help would be much appreciated.

local-mbp:~ $ sudo easy_install pycurl
Password:
Searching for pycurl
Reading http://pypi.python.org/simple/pycurl/
Best match: pycurl 7.19.3.1
Downloading https://pypi.python.org/packages/source/p/pycurl/pycurl-7.19.3.1.tar.gz#md5=6df8fa7fe8b680d93248da1f8d4fcd12
Processing pycurl-7.19.3.1.tar.gz
Running pycurl-7.19.3.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-jKMmtE/pycurl-7.19.3.1/egg-dist-tmp-9z89Ns
Using curl-config (libcurl 7.30.0)
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1
local-mbp:~ $ which gcc
/usr/bin/gcc
local-mbp:~$ which cc
/usr/bin/cc
local-mbp:~$

Upvotes: 1

Views: 4248

Answers (2)

Vladimir
Vladimir

Reputation: 348

Try specify the ARCHFLAGS env var:

ARCHFLAGS="-arch x86_64" pip install pycurl

Upvotes: 3

daviewales
daviewales

Reputation: 2699

Try this:

brew install python

Double check you are using brewed Python:

which python

(Should return something like /usr/local/bin/python)

Install pycurl with pip.

pip install pycurl

I just tested this on Mavericks.

Upvotes: 3

Related Questions