thclpr
thclpr

Reputation: 5938

Copying python applications to servers without internet connection

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?

Upvotes: 1

Views: 680

Answers (1)

thclpr
thclpr

Reputation: 5938

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.

Upvotes: 2

Related Questions