我无法使用yum安装pip,您知道以下错误吗? [英] I can't install pip with yum, do you know the following error?

查看:113
本文介绍了我无法使用yum安装pip,您知道以下错误吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,当我尝试安装pip时发生错误:

An errors occurs when i try to install pip (for example):

sudo yum install python-pip 

Complementos cargados:fastestmirror, presto Configurando el proceso de instalación Loading mirror speeds from cached hostfile 
* base: mirror.gadix.com 
* epel: mirror.airenetworks.es 
* extras: mirror.gadix.com * updates: mirror.gadix.com repositories.lab.fiware.org/repo/rpm/6/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" Intentando con otro espejo. 
Error: Cannot retrieve repository metadata (repomd.xml) for repository: Fiware. Please verify its path and try again

推荐答案

通常,如果您使用的是Ubuntu系统,则应使用apt-get或apt安装软件,而不要使用yum.您需要执行的唯一命令基本上是更新apt,然后安装python-pip软件包:

Usually if you are working with Ubuntu system, you should use apt-get or apt to install software and not yum. The only commands that you need to execute are basically update the apt and then install the python-pip package:

sudo apt update
sudo apt install python-pip

对于CentOS,您应该使用yum,但在这种情况下,您需要做的第一件事就是安装python-pip软件包所在的EPEL repo.之后,您需要更新yum并最终安装该软件包.

In case of CentOS, you should use yum but in that case the first thing that you need to do is the installation of the EPEL repo in which the python-pip package is located. Afterwards, you need to update yum and finally install the package.

sudo yum -y install epel-release
sudo yum -y update
sudo yum -y install python-pip

这篇关于我无法使用yum安装pip,您知道以下错误吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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