What I have is development version of intranet site developed with Django and some external libraries placed in virtualenv. It runs fine and I can easily set up virtualenv with the same parameters (using pip) on any computer with internet connection. But, unfortunately it needs to be deployed on computer without :( Any way to deal with this? Thanks in ad开发者_C百科vance.
You can create PIP bundle.
Update: pip bundle has been deprecated, and removed from PIP since version 1.5
With PIP 1.5 you should instead create local cache of the packages.
- download packages:
pip install --download <DIR> -r requirements.txt
- use them:
pip install --no-index --find-links=<DIR> -r requirements.txt
Alternative is to use wheel
packages:
- install
wheel
if you don't have it alreadypip install wheel
- download packages:
pip wheel --wheel-dir=<DIR> -r requirements.txt
- use them:
pip install --use-wheel --no-index --find-links=<DIR> -r requirements.txt
精彩评论