I am a windows 7 user, so pardon me for my ignorance. I have been trying to help my friend get easy_install working on her Mac OS X laptop. We managed to get everything working for 2.7 with these commands in the terminal:
python distribute_setup.py (which installs "distribute")
easy_install
We tried the same thing for Python 3.2.3:
python3.2 distribute_setup.py
easy_install
But the package gets installed for python 2.7 instead of 3.2.3. From what I know, this is because easy_install only works with 2.7.
On my windows 7, I managed to do all these by going into the command prompt, python32 directory and doing:
python distribute_setup.py
Then going into the python32/script directory and running easy_install.exe directly:
easy_install
This installs the package to python 3.2.3 with no problems.
Question:
What should we be doing for Mac OS X? Is there a Mac equivalent of running "easy_install.exe"?
You’ve done the right first step,
python3.2 distribute_setup.py. That should have installed a version ofeasy_installfor your python3.2. Now you need to actually use thateasy_installcommand rather than the ones that come pre-installed with OS X for the system Pythons. If you still have the output from the above command or if you run the command again, near the end you should see two lines like this:Those locations are for the OS X Python3.2 downloaded from python.org, you might see something else for other versions. That shows the directory where the
easy_installscripts were installed. You could use an absolute path to execute the script:but that’s rather inconvenient. If you are planning to use Python3.2 extensively, you can modify your shell search
PATHto add this directory to it. For most shells on OS X:You can add that to a shell initialization file, like
~/.bash_profile. If you installed the python.org Python 3.2, you can just double-click/Applications/Python 3.2/Update Shell Profile.commandto do that for you. You will need to open an new terminal window afterwards to see the change.