Created
June 3, 2013 04:22
-
-
Save brendancol/5696107 to your computer and use it in GitHub Desktop.
migrate python project from Windows virtualenv to Linux virtualenv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from: http://stackoverflow.com/questions/12033861/cross-platform-interface-for-virtualenv | |
On Windows: | |
using virtualenv as source: | |
pip freeze > requirements.txt | |
Linux: | |
virtualenv --no-site-packages prod_env | |
source prod_env/bin/activate | |
pip install -r requirements.txt | |
When you have a requirements change: | |
simply regenerate the requirements.txt file and run pip install -r requirements.txt in production. | |
don't have access to the Internet: | |
create your own private pypi server and push your packages there. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment