虚拟环境中的 PyDev 和 Django

发布于 2024-10-08 12:33:48 字数 172 浏览 16 评论 0原文

我已经通过控制台设置了虚拟环境,然后使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

眼泪也成诗 2024-10-15 12:33:48

需要将项目使用的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.

緦唸λ蓇 2024-10-15 12:33:48

如果它像 iPython 一样工作,您将需要在虚拟环境中安装 PyDev。 IE:

pip install ipython

If this works anything like iPython, you will need to install PyDev inside of your virtual environment. IE:

pip install ipython
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文