0

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.

asked Feb 22 at 19:06

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.