我通过 Macports 安装了 Django。我浪费了很多时间让它工作。
它仍然不起作用。我想完全卸载 Django (Macports) 并使用简单安装 (DJANGO) 进行安装。我想保留 Macports 而不是卸载它,因为我读过它应该很有用。
我怎样才能做到这一点?
感谢您的关注。
我通过 Macports 安装了 Django。我浪费了很多时间让它工作。
它仍然不起作用。我想完全卸载 Django (Macports) 并使用简单安装 (DJANGO) 进行安装。我想保留 Macports 而不是卸载它,因为我读过它应该很有用。
我怎样才能做到这一点?
感谢您的关注。
你试过了port -f uninstall <port>
吗?
如果你想卸载你用 MacPorts 安装的所有东西,你可以运行:
port -f uninstall installed
您应该以 root 用户身份运行这些命令,因此请在命令之前使用sudo
或su root
。
sudo port -f uninstall <port>
根据您实际安装的内容,<port>
是
py-django
py25-django
py26-django
您可以通过以下方式了解
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'