虚拟环境中的 PyDev 和 Django
我已经通过控制台设置了虚拟环境,然后使用 pip 安装了 Django。我现在真的很想在 PyDev 中打开并运行这个文件夹/project/virtualenv,但我不知道如何做。在 PyDev 中我只能启动新的 Django 项目,该项目没有隔离环境......
你知道我的意思吗?
谢谢大家!
I've set my virtual environment through console and than with pip installed Django into it. I'd really like now to open and run this folder/project/virtualenv inside of PyDev, but I don't know how. In PyDev I can only start new Django project, which hasn't isolated environment...
You know what I mean?
Thanks everyone!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
需要将项目使用的Python解释器设置为virtualenv中的解释器。 Pydev 手册提供了有关如何配置解释器的更多信息。
You need to set the Python interpreter used by the project to the interpreter in the virtualenv. The Pydev manual has more information on how to configure the interpreter.
如果它像 iPython 一样工作,您将需要在虚拟环境中安装 PyDev。 IE:
If this works anything like iPython, you will need to install PyDev inside of your virtual environment. IE: