Geuis
Geuis

Reputation: 42297

pycurl module not available after installation on Snow Leopard

I'm running Python 2.6.4 on Mac Snow Leopard. I installed pycurl using:

sudo env ARCHFLAGS="-arch x86_64" easy_install setuptools pycurl==7.16.2.1

The installation completes with no issues and says pycurl is installed in subsequent installation attempts. However, when I try to "import pycurl" in a script, I get a message that pycurl isn't found. I'm not sure what else to do to fix this.

Upvotes: 0

Views: 877

Answers (3)

Ned Deily
Ned Deily

Reputation: 85125

If you have installed Python 2.6.4 using the python.org OS X installer, you need to install the optional 10.4u SDK from the 10.6 Xcode mpkg to install any python packages that include C extension modules.

Upvotes: 0

Gattster
Gattster

Reputation: 4791

I would suspect you have 2 versions of python on your system. How about removing easy install and reinstalling it.

Remove the current easy install script by typing which easy_install and then rm [easy install full path].

To install easy install

wget http://peak.telecommunity.com/dist/ez_setup.py
python ez_setup.py

Then, try your command again:

sudo env ARCHFLAGS="-arch x86_64" easy_install setuptools pycurl==7.16.2.1

Upvotes: 2

YOU
YOU

Reputation: 123937

I guess you have 2 different versions of python, you can find out by running command which python

Upvotes: 1

Related Questions