Automatically activate virtualenv in PyCharm terminal window

I am using PyCharm with virtualenv.

Is there a way to force virtualenv to be activated in the PyCharm terminal window when the application starts?

At this time, when I open PyCharm (with a relative project) and the terminal window in it, I need to manually run the command (source / env / bin / activate) to enable virtualenv in this PyCharm terminal window.

+8
python pycharm
source share
1 answer

Here you can find the answer.

for Windows - go to the "Settings", "Terminal", "Default" section and add /K <path-to-your-activate.bat> .

+3
source share

All Articles