简体   繁体   English

虚拟环境中的PyDev和Django

[英]PyDev and Django inside virtual environment

I've set my virtual environment through console and than with pip installed Django into it. 我已经通过控制台设置了虚拟环境,然后将pip安装了Django。 I'd really like now to open and run this folder/project/virtualenv inside of PyDev, but I don't know how. 我现在真的很想在PyDev中打开并运行此文件夹/项目/ virtualenv,但是我不知道如何。 In PyDev I can only start new Django project, which hasn't isolated environment... 在PyDev中,我只能启动没有隔离环境的新Django项目...

You know what I mean? 你知道我的意思?

Thanks everyone! 感谢大家!

You need to set the Python interpreter used by the project to the interpreter in the virtualenv. 您需要将项目使用的Python解释器设置为virtualenv中的解释器。 The Pydev manual has more information on how to configure the interpreter . Pydev手册提供了有关如何配置解释器的更多信息。

If this works anything like iPython, you will need to install PyDev inside of your virtual environment. 如果这可以像iPython一样工作,则需要在虚拟环境中安装PyDev。 IE: IE:

pip install ipython

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM