开发者

Django Python Macports

I installed Django via Macports. I wasted a lot of time on making it work.

It still does not work. I would like to COMPLETELY uninstall Django (Macports) and 开发者_开发知识库install with the easy install (DJANGO). I would like to keep Macports and not uninstall it, because I read it SHOULD be useful.

How can I achieve this?

Thank you for your attention.


Did you try port -f uninstall <port>?

If you want to uninstall everything that you've installed with MacPorts you could run:

port -f uninstall installed

You should be running these commands as the root user, so either use sudo or su root before the commands.

sudo port -f uninstall <port>

Depending on what you actually installed, <port> is any of

py-django
py25-django
py26-django

You can find out with

port list installed | grep django


django with Macport should work. py26-django or py27-django. It is the python version you are using that causes the problem.

Check to see if you are using the python comes with Mac or python installed via macport. Try python, python2.6, python2.7 from the terminal.

On my Mac (OSX 10.6.8) the default python version is 2.6.1. The macport version is 2.6.7.

You can replace the /usr/bin/python with the macport version by using 'ln -s'

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜