2

I've got two installations of curl: one is in /usr/bin - should be the system one, another is in /usr/local/bin - I installed it from source. These two installations have different versions.

Pycurl is using the one from /usr/bin, whereas curl command now points to the one in /usr/local/bin - I've changed the $PATH var in my .bash_profile accordingly.

I didn't try to re-install pycurl.

Is there a way to tell pycurl to use the different libcurl installation, the one which comes along with /usr/local/bin/curl? If pycurl re-installing is required, are there any additional flags needed to point pycurl to the needed libcurl version?

Thank you.

2 Answers 2

1

If you install pycurl by hand (setup.py, not pip), you can run:

python setup.py --curl-config=/usr/local/bin/curl-config install

(To install with pip, I would try moving /usr/local/bin first in your path so it will find the right curl-config, but I haven't tried this myself) If your installation of curl is not in /usr/local, you might also need to add the appropriate lib directory to DYLD_LIBRARY_PATH.

Sign up to request clarification or add additional context in comments.

Comments

-1

Maybe using python virtualenv could be of help.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.