Currently, I created a virutal environment in my
- /home/myuser/my_virtual_env/
How do I copy this entire thing to another user? (and perhaps rename it to thatuser_virtual_env)
? I have to copy all the python packages, and eveyrthing.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The ‘official’ method is to create virtualenv this way:
virtualenv --relocatable ENV.Check the ‘Making Environments Relocatable’ section here: http://pypi.python.org/pypi/virtualenv
But I think the way to go is not to copy the environment (that’s quite error prone) but to script the environment creation.
You can auto-generate a pip requirements file using
pip freezecommand and then tweak it manually.