pydev不能识别django安装 [英] pydev does not recognize django installation

查看:127
本文介绍了pydev不能识别django安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有python 2.6.1安装了django 1.3和PyDev 2.0。我可以导入django并从命令行打印版本。但是,当我尝试使用pydev创建一个Django项目,甚至导入django我得到一个错误。当创建django项目时,我得到Django未找到。错误。



我已经尝试删除并添加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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆