I have an existing Python django Project running in Web Server. Now the client needs to make some changes in the existing code. So I need to set it up in my Local Machine. All the packages needed for this project is installed in a Virtual environment. How can I copy or clone this virtual environment to my Local machine to run this Project.
sharing with partnersIf you want to share your virtualenv with a lab partner, you just need to allow read-execute access to the Envs directory and any files below that. All that's stored in there is the software you installed (e.g., with pip ), so it's OK to open up this directory for others to access.
pip freeze > requirements.txt
on the remote machinerequirements.txt
file to your local machinepip install -r requirements.txt
And, so long as all of the requirements are well behaved Python packages, you should be good to go.
Please using Freeze command and you will get text file with all the versions of packages. Then install them using easy install or pip install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With