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.
When terminal setting is C:\windows\system32\cmd.exe , then PyCharm automatically activates Python virtual environment.
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.
You can find answer here
for Windows - Go to Settings, Terminal, Default shell and add /K <path-to-your-activate.bat>
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With