1

我通过 Macports 安装了 Django。我浪费了很多时间让它工作。

它仍然不起作用。我想完全卸载 Django (Macports) 并使用简单安装 (DJANGO) 进行安装。我想保留 Macports 而不是卸载它,因为我读过它应该很有用。

我怎样才能做到这一点?

感谢您的关注。

4

2 回答 2

4

你试过了port -f uninstall <port>吗?

如果你想卸载你用 MacPorts 安装的所有东西,你可以运行:

port -f uninstall installed

您应该以 root 用户身份运行这些命令,因此请在命令之前使用sudosu root

sudo port -f uninstall <port>

根据您实际安装的内容,<port>

py-django
py25-django
py26-django

您可以通过以下方式了解

port list installed | grep django
于 2010-05-10T13:18:10.930 回答
1

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'

于 2011-10-21T05:38:50.147 回答