离线pip安装 [英] Offline pip installation

查看:115
本文介绍了离线pip安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在离线服务器上安装pip? 我具有SSH访问权限,可以通过scp发送文件.该服务器具有Red Hat.

How can I install pip in an offline server? I have SSH access and can send files via scp. The server has Red Hat.

我这样做了 https://pip.pypa.io/en /stable/installing.html#install-pip ,但尝试下载某些内容.

I did this https://pip.pypa.io/en/stable/installing.html#install-pip but tries to download something.

是否可以打包pip及其所有依赖项,然后将其发送到服务器并从那里安装?我已经使用要通过pip安装的python软件包来做到这一点.

Is there a way to package pip and all its dependencies, so then I can send that to the server and install it from there? I already did this with python packages that to install with pip.

推荐答案

  1. 下载python-pip yum软件包. pip RHEL安装 yum下载程序包
  2. 将其移动到您的离线计算机
  3. 好吧
  1. Download python-pip yum package. pip RHEL install, yum download package
  2. Move it to your offline machine
  3. Yum it

这篇关于离线pip安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆