How to Copy/Clone a Virtual Environment from Server to Local Machine

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.


  1. Run pip freeze > requirements.txt on the remote machine
  2. Copy that requirements.txt file to your local machine
  3. In your local virtual environment, run pip 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

Need Your Help

Retrieving the Min element in a stack in O(1) Time

performance algorithm data-structures stack

The reason I'm asking this question is because I cannot see why the way I think cannot be applied to this particular question

Generate a random 10 digit number and insert into mysql?

php mysql

I am trying to generate a random 10 digit number and insert this into mysql on page load, so each time the page refreshes or loads there should be a different 10 digit number being inserted into the