简体   繁体   中英

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 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.
  1. download ez_setup.py first and run it with jython first
  2. download the pip source code archive, unpack it and run the setup.py script with the jython interpreter
  3. 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM