在PyCharm终端窗口中自动激活virtualenv

时间:2014-08-01 13:54:38

标签: python pycharm

我正在使用带有virtualenv的PyCharm。

在应用程序启动时,是否有任何方法可以在PyCharm的终端窗口中强制激活virtualenv?

此时,当我打开PyCharm(带有相关项目)和其中的终端窗口时,我需要手动运行命令(source / env / bin / activate)以在PyCharm的终端窗口上启用virtualenv。

1 个答案:

答案 0 :(得分:3)

您可以找到答案here

for Windows - 转到设置,终端,默认shell并添加/K <path-to-your-activate.bat>

相关问题