I just got easy_install downloaded but i’m having problems installing mechanize, should I be addressing site-packages at any point. In the first try below, i got an error. in the second try below, i got command not found which is wierd since I know for sure that it downloaded.
names-computer:~ names$ cd /Users/names/Desktop/
names-computer:~/Desktop names$ sh /Users/names/Desktop/mechanize-0.1.9-py2.5.egg
/Users/names/Desktop/mechanize-0.1.9-py2.5.egg: /Users/names/Desktop/mechanize-0.1.9-py2.5.egg: cannot execute binary file
names-computer:~/Desktop names$ easy_install mechanize
-bash: easy_install: command not found
On OS X, Python interpreter instances are typically installed as so-called Framework builds which means that there is a
bindirectory within the framework which is typically (but not always) the installation destination for python scripts, such aseasy_install. If you are not using the Apple-supplied python (in /usr/bin/) which has its owneasy_installinstance there, you should ensure that the framework bin directory of the desired python is on your shell search PATH and precedes/usr/bin. In particular, if you are using the python installed by the python.org installer, your PATH should look something like this:That ensures that the proper
easy_installwill be found first. If you are using a MacPorts python, it should look like this:EDIT: By the way, the egg that you downloaded appears to be for Python 2.5 and judging from a previous question, you may be wanting to use it with python 2.6. If you just use the command
it should automatically download the proper egg, if available, or the source and do the necessary build and install steps.