在 Mac OS X 上安装 Jython
我想在 Mac OS X 上安装 Jython。安装 Jython 2.5.2 后到目前为止一切顺利。并在 .profile
中创建别名,我现在可以运行 Jython。但是我无法使用 pip 和 Easy Install 因为它在当前目录中查找。我该如何调整这个?
iMac:~ admin$ jython pip something
IOError: [Errno 2] File not found - /Users/admin/pip (No such file or directory)
我想我应该为 Jython 设置一个虚拟环境,但我收到此错误:
iMac:~ admin$ jython virtual-env.py --prefix ~/Jython/
This script only works on Unix-like platforms, sorry.
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最好、最简单的方法是首先获取 Homebrew,这非常简单。
当你有 Homebrew 时,你可以输入
The best and easiest way to do this is to first get Homebrew, which is very easy.
When you have Homebrew you type