Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

auto activate virtualenv in PyCharm terminal window [duplicate]

Tags:

python

pycharm

I'm using PyCharm with virtualenv.

Is there any method to force the activation of virtualenv, in terminal window of PyCharm, at startup of the application?

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

like image 698
Fabrizio A Avatar asked Aug 01 '14 13:08

Fabrizio A


People also ask

Does PyCharm automatically activate virtual environment?

When terminal setting is C:\windows\system32\cmd.exe , then PyCharm automatically activates Python virtual environment.

How do I remove VENV from PyCharm?

You can clean out old PyCharm interpreters that are no longer associated with a project via Settings -> Project Interpreter, click on the gear in the top right, then click "More". This gives you a listing where you can get rid of old virtualenvs that PyCharm thinks are still around.


1 Answers

You can find answer here

for Windows - Go to Settings, Terminal, Default shell and add /K <path-to-your-activate.bat>.

like image 158
Anton Avatar answered Oct 16 '22 15:10

Anton