PyCharm will nicely match virtual environment with w project when setting up a project interpreter, but it needs to know where to look for virtual environments.
I use fish shell and I set environment variables in the ~/.config/fish/config.fish
, but it won’t be sourced when you run PyCharm from the task bar. So we need to setup a workspace script that will setup environment for GUI applications:
echo "export WORKON_HOME=/data/venvs/" > $HOME/.config/plasma-workspace/env/workon_home.sh