无法在SUSE上安装python pip

2024-05-17 11:13:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个SUSE Linux Enterprise Server 11 SP3 for VMware(x86_64)的沙盒环境,并尝试使用以下命令通过终端在其上安装python pip:

python pip中的sudo zypper

我收到一条消息:找不到“python pip”包。

下载get-pip.py后,我尝试使用“python get pip.py”安装pip 它给了我这个:

找不到任何满足pip要求的下载 没有找到pip的任何分布


Tags: pippy命令沙盒终端forget环境
2条回答

SLES12 SP3示例:

touch  /etc/zypp/repos.d/devel_languages_python.repo
cat < EOF > /etc/zypp/repos.d/devel_languages_python.repo
[devel_languages_python]
name=Python Modules (SLE_12_SP3)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12_SP3/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/devel:/languages:/python/SLE_12_SP3/repodata/repomd.xml.key
enabled=1
EOF
zypper ref
# choose trust when asked for the signing key
zypper in -y python-pip

相关问题 更多 >