在雪豹中安装 VPython
我刚上大学,我们必须安装Python。 没关系,因为它内置于 OSX (Snow Leopard) 中。 我已经使用以下命令安装了 matplotlib、numpy 和 scipy: http://stronginference.com/scipy-superpack/
它工作得很好,而且我不需要安装 python.org 版本。但是,现在我们必须安装 VPython,这需要 Python.org 版本(2.7)。
我只是想知道是否可以仅在苹果版本的 Python (2.6.1) 中安装该库。
I've just started university, and we have to install Python.
That's fine, cause it's built-in to OSX (Snow Leopard).
I have installed matplotlib, numpy and scipy using this: http://stronginference.com/scipy-superpack/
It works perfectly, and I don't have to install the python.org version. But, now we have to install VPython, which requires the Python.org version (2.7).
I just want to know if it's possible to install just the library's in the apple version of Python (2.6.1).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一个复杂的软件,具有复杂的构建过程,所以首先我建议您省去一些麻烦并编译自己的 Python 2.7 并将其作为用户安装在您的主目录下/安装 2.7 的 MacOS X 二进制文件(可能也是您主目录下的用户,但我对此不太确定)[1]。 VPython 是复杂的软件,如果他们在文档中明确表示想要 2.7,他们可能有充分的理由。 可能是可能的,但我预计在尝试使用他们推荐的版本之外的其他版本时会出现各种问题。
但如果你真的想尝试一下,他们所谓的“Linux”下载实际上是他们的源代码树。下载并尝试以您的自定义构建/安装的 Python 为基础来构建它。
[1] 编译 Python 是一次很棒的学习体验,尤其是与 virtualenv 和 分发。多个隔离的Python FTW。
This is a complicated software with a complicated build process, so first and foremost I'd advice you to save yourself some trouble and compile your own Python 2.7 and install it as a user somewhere under your home directory / install the MacOS X binary of 2.7 (probably also as a user under your home directory, but I'm less sure about that) [1]. VPython is complicated software and if they explicitly say that the want 2.7 in their docs they probably have a good reason. It might be possible but I'd expect various problems when trying with another version than their recommended one.
But if you really want to have a shot, what they call their 'Linux' download is actually their source tree. Download and try to build that with your custom build/installation of Python as basis.
[1] Compiling Python is a great learning experience, especially in combination with virtualenv and Distrubute. Multiple isolated Python's FTW.
我建议使用 macports,fink 或 homebrew 安装 python 2.7。接下来,您应该能够使用 setuptools 安装 matplotlib、scipy,然后安装 vpython。
I would recommend using macports, fink or homebrew to install python 2.7. Following that, you should be able to use setuptools to install matplotlib, scipy and then vpython.