开发者

Installing VPython in Snow Leopard?

So, i've just startet university, and we have to install python. Thats fine, cause it's build-in to OSX (Snow Leopard). I have installed matplotlib, numpy and scipy us开发者_高级运维ing 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, wich requires the python.org version (2.7) I just wanna know if it's possible to install just the library's in the apple version of python (2.6.1)

Regards, Adam.


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.


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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜