Is there a way to install Python's pip in the closed network?

Asked 2 years ago, Updated 2 years ago, 71 views

There is a closed network server that can be accessed only by VPN. I'm using the Linux (Ubuntu) OS.

Python 3.5.2 is installed, but there is no pip installed You cannot use commands such as piplist.

I want to download the necessary package via pip online, organize the files through pip download, and send them to the closed network to install the necessary package There's no pip on the closed network server in the first place. Is it possible to install Python's pip on the closed network?

python python3.5 ubuntu linux

2022-09-20 20:19

1 Answers

There is a Python package called pypiserver. If you install the package, float the server, and place the files received by pip download on the server (downloaded whl, tar.gz, zip ... All you have to do is copy and put the files into a specific folder on the server.) , not pypi.org , but your own server will behave like a pip server. On the client side, you need to set the pip settings file (modify pip.ini for Windows) so that you can view the private server.

It's a little complicated if you set it up with security in mind, but if you're going to use it roughly, it's not very complicated.

I think the server was also available on Windows, but I think it's convenient to install Ubuntu and spin it on a play desktop with plenty of disks.


2022-09-20 20:19

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.