I use python with virtual environments on manjaro linux.
I install the package python-virtualenvwrapper, then I added
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export VIRTUALENVWRAPPER_VIRTUALENV_ARGS=' -p /usr/bin/python3 '
export PROJECT_HOME=$HOME/Devel
source /usr/bin/virtualenvwrapper.sh
in ~/.zshrc (I use zsh instead of bash).
New virtual environments are created with
mkvirtualenv xxx
and
workon
shows the created virtual environments.
But I worked on the python project on a computer and a notebook and don't want to manage virtual environments on both devices anymore. So I copy on the computer the directory ~/virtualenvs to a directory /mnt/data/S_sites, which is synced with syncthing between computer and notebook and create a link from /mnt/data/S_sites/.virtualenvs to ~/.virtualenvs.
After syncthing run on the notebook I create the same link. But on the notebook, I don't see the synced virtual envs, but the formerly created on the notebook when I called
workon
but
ls -la ~/.virtualenvs/
shows the correct directories. Why?
Sorry, my fault: As I tested the notebook, the synchronization was not complete. Now it works.