Installing Jython on Mac OS X
I want to install Jython on Mac OS X. Sofar so good, after installing Jython 2.5.2. and creating an alias in .profile
I am now able to run Jython. However I开发者_如何学C cannot use pip and Easy Install because it looks in the current directory. How do I adjust this?
iMac:~ admin$ jython pip something
IOError: [Errno 2] File not found - /Users/admin/pip (No such file or directory)
I guess I should setup a virtual environment for Jython, but I get this error:
iMac:~ admin$ jython virtual-env.py --prefix ~/Jython/
This script only works on Unix-like platforms, sorry.
- download ez_setup.py first and run it with jython first
- download the pip source code archive, unpack it and run the setup.py script with the jython interpreter
- run /path/jython/bin/pip...
The best and easiest way to do this is to first get Homebrew, which is very easy.
When you have Homebrew you type
brew install jython
精彩评论