1

Currently I have a production server that doesn't have any connection to the internet (connections are not allowed).

Since I have a massive number of applications which use tons of packages, I need to figure out the best way to deploy without pip or downloading every whl package. Which would be the most appropriate way to replicate the virtualenv for other servers?

What would be the proper approach for that situation?

EDIT: Would pip2.7 wheel --wheel-dir=/path/ package do the job?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
thclpr
  • 5,778
  • 10
  • 54
  • 87

1 Answers1

2

The following command solved:

pip2.7 wheel --wheel-dir=/project/whls/ package

I packaged everything, uploaded to the server and executed the command

cd /projects/whls/; pip install *

Worked perfectly.

thclpr
  • 5,778
  • 10
  • 54
  • 87