PyCharm 4.5.4
Create a file .pycharmrc in your home folder with the following contents
source ~/.bashrc source ~/pycharmvenv/bin/activateUsing your virtualenv path as the last parameter.
Then set the shell Preferences->Project Settings->Shell path to
/bin/bash --rcfile ~/.pycharmrc
I don't why, but it doesn't work for me. PyCharm prints an error.
cmd.exe /K "<path-to-your-activate.bat>" It works, but it creates the same virtualenv for each project, and even if this is not necessary.
This receiptreceipt is working! But the string /env_yourenvlocate/scripts/activate.bat must contain quotes, like this "Full_path_to_your_env_locate\scripts\activate.bat"!
Deactivate the virtualenv is very easy - type in the terminal 'deactivate'
(virt_env) D:\Projects\src>deactivate D:\Projects\src>