Hello I am very new to Python. I am trying to install Pycurl on Mac OSX 10.10.1. I have bothy Python 2 and 3 installed on my mac. Although the python scripts I am running can only work with Python 3.
I tried both pip install pycurl
and sudo easy_install pycurl
.
pip install pycurl
gave me command not found
But I was able to install pycurl using sudo easy_install pycurl
. However, it was automatically installed under python 2.7.
Therefore, when I tried to execute python scripts with python 3, ModuleNotFoundError: No module named 'pycurl'
First I thought of removing python 2 so pycurl would automatically be installed under python 3. After reading this thread, I am afraid of removing Python 2 would crash my OSX: How to uninstall Python 2.7 on a Mac OS X 10.6.4?
Can someone tell me how to make sure sudo easy_install would install pycurl under python 3 not 2? Thanks a lot.