问题描述
在尝试安装django的过程中,我遇到了一系列故障。我在线遵循了许多不同的教程,最终尝试安装好几次。我想我可能已经安装了两次(网站说的不是一件好事),那么我该如何判断是否安装了多个版本呢?我有一台Mac跑狮子。打开终端并键入 python
然后键入 import django
然后键入 django
,它会告诉你导入django的路径。转到该文件夹[应该看起来像这样: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages /
]并查看对于django的一个以上的实例(如果有不止一个,他们将是彼此相邻)。删除一个你不想要的。
In the process of trying to install django, I had a series of failures. I followed many different tutorials online and ended up trying to install it several times. I think I may have installed it twice (which the website said was not a good thing), so how do I tell if I actually have multiple versions installed? I have a Mac running Lion.
open terminal and type python
then type import django
then type django
and it will tell you the path to the django you are importing. Goto that folder [it should look something like this: /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
] and look for more than one instance of django(if there is more than one, they will be right next to each other). Delete the one(s) you don't want.
这篇关于如何判断您是否安装了多个Django的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!