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

前端 未结 2 1837
说谎
说谎 2020-12-04 18:09

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. A

相关标签:
2条回答
  • 2020-12-04 18:35

    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

    0 讨论(0)
  • 2020-12-04 18:40
    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.

    0 讨论(0)
提交回复
热议问题