Installing Python 2.5 on Mac 10.6, for GAE/Django-nonrel (and i'm a new mac user)

最后都变了- 提交于 2019-12-06 22:02:29

Easiest way is probably to install Mac Ports: http://www.macports.org/

Then from a terminal window: $ sudo port install python25

Afterwards, you should have python_select available, which you can use to change your symlinks.

10.6 has python2.5 installed, but python2.6 is the default. Use python2.5 manage.py instead of python manage.py.

You can also change default python: defaults write com.apple.versioner.python Version 2.5

Changing the system wide python default may have unintended side affects depending on your setup.

In either situation, you will still want to use easy_install-2.5

Merhawi Fissehaye

I found this stackoverflow answer

Instead of using brew to install into the entire system a really old version of Python; consider using pythonbrew instead. It will isolate the python install - a bit like virtual environment, but for Python itself.

How to install pythonbrew

How to use pythonbrew

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!