开发者

Installing Jython on Mac OS X

开发者 https://www.devze.com 2023-03-04 13:13 出处:网络
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 Insta

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.


  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
0

精彩评论

暂无评论...
验证码 换一张
取 消