Django / Eclipse集成 [英] Django/Eclipse Integration
问题描述
我已将django下载到我的系统上,并尝试将其导入eclipse。
我不断告诉我,直到python解释器,django不在那里,这绝对是,砍伐这可能是一个快速的修复,但这是我如何安装其他所有的程序。 >
I've downloaded django onto my system and tried importing it into eclipse. Eclipse keeps telling me after i direct it to the python interpreter that django is not there, which it most certainly is, felling this could be a quick fix, but thats how i've installed every other program.
推荐答案
配置后,PyDev将静态解析您的解释器特定于站点的路径。这意味着每当您的站点的路径发生变化时,您都必须重新配置您的解释器,例如安装新的软件包,如Django。
PyDev will statically resolve your interpreter's site-specific paths once you configure it. It means you'll have to reconfigure your interpreter every time your site's paths change, like installing a new package such as Django.
这里是解释器配置文档说:
在配置[解释器]之后,我的系统PYTHONPATH中添加了新的东西?
如果您向python安装添加内容,则需要
手动添加作为系统PYTHONPATH中的新文件夹(如果它是
仍然不在PYTHONPATH中的文件夹下)或(推荐)删除
您的解释器并再次添加,然后按申请。
What if I add something new in my System PYTHONPATH after configuring [the interpreter]?
If you add something to your python installation, you need to either add it manually as a 'new folder' in the System PYTHONPATH (if it's still not under a folder in the PYTHONPATH) or (recommended) remove your interpreter and add it again, then, press apply.
这篇关于Django / Eclipse集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!