pydev不能识别django安装 [英] pydev does not recognize django installation
问题描述
我已经尝试删除并添加pythong解释器来重新扫描站点包。我看到django在库部分中不可用。我甚至尝试手动添加文件夹并应用该设置。
我错过了什么?
谢谢
我也有同样的问题。我甚至在我的系统库中有django。我的解决方案是将相同的文件夹添加到项目> PyDev-PYTHONPATH>外部库:
/usr/local/lib/python2.7/dist-packages
在此之前,我尝试重新启动口译,但没有运气。上述解决方案是唯一为我工作的解决方案。
I have python 2.6.1 installed with django 1.3 and PyDev 2.0. I am able to import django and print the version from commandline. However, when I try to create a Django project with pydev or even import django I get an error. When creating the django project, I get "Django not found." error.
I have tried removing and adding the pythong interpreter to rescan the site-packages. I see that django is not available in the Libraries section. I have even tried adding the folder manually and applying the setting.
Am I missing something?
Thanks
I had the same problem. I even had django in my System Libs. My solution was to add the same folder to the Project > PyDev-PYTHONPATH > External Libraries:
/usr/local/lib/python2.7/dist-packages
Before that I tried to reinitiate the interpreter, but no luck. The above solution was the only one the worked for me.
这篇关于pydev不能识别django安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!