Pip offline installation tool.
- Two servers, one can be networked called A, one can not be networked called B.
- A server with the same
architecture
and the samedistribution
as the B server, and with a good network. - Same python version and
pip
is installed. - Both servers must have sufficient hard disk space.
We use ipython
as example.
Create a work folder.
root@debian:~# mkdir test
root@debian:~# cp poit test/
root@debian:~# cd test
Start packing.
root@debian:~/test# ./poit --pack ipython
Create tmp dir success
Downloading...
Saving...
Hashing...
Removing tmp dir...
Done
Or package a version of the software.
root@debian:~/test# ./poit --pack ipython --ver 8.13.2
Create tmp dir success
Downloading...
Saving...
Hashing...
Removing tmp dir...
Done
These three files will appear in the directory.
root@debian:~/test# ls
ipython.poit ipython.poit.sha256 poit
Do not change any files, including naming
and content
, and make sure all three files are copied to a USB
or CD
.
Check for the presence of these three files.
root@debian:~/test# ls
ipython.poit ipython.poit.sha256 poit
Start offline installation.
root@debian:~/test# ./poit --install ipython.poit
Checking...
Check sha256 success
Decompress poit...
Removing tmp dir...
Done
If this process does not have any error messages, the installation is successful and you can now use the offline installed ipython
.