yum -y install pip No package pip available. Error: Nothing to do

centos下安装pip时失败:

[[email protected] ~]# yum -y install pip
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.tuna.tsinghua.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
Setting up Install Process
No package pip available.
Error: Nothing to do

解决方法:

  

需要先安装扩展源EPEL。

EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。

首先安装epel扩展源:

sudo yum -y install epel-release

然后再安装pip

~]# sudo yum -y install python-pip
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 4.9 kB 00:00 
* base: mirrors.tuna.tsinghua.edu.cn
* epel: mirrors.neusoft.edu.cn
* extras: mirrors.tuna.tsinghua.edu.cn
* updates: mirrors.tuna.tsinghua.edu.cn
epel | 4.3 kB 00:00 
epel/primary_db | 5.8 MB 00:07 
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package python-pip.noarch 0:7.1.0-1.el6 will be installed
--> Processing Dependency: python-setuptools for package: python-pip-7.1.0-1.el6.noarch
--> Running transaction check
---> Package python-setuptools.noarch 0:0.6.10-3.el6 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


================================================================
Package Arch Version Repository
Size
================================================================
Installing:
python-pip noarch 7.1.0-1.el6 epel 1.5 M
Installing for dependencies:
python-setuptools noarch 0.6.10-3.el6 base 336 k


Transaction Summary
================================================================
Install 2 Package(s)


Total download size: 1.9 M
Installed size: 8.1 M
Downloading Packages:
(1/2): python-pip-7.1.0-1.el6.noarch.rpm | 1.5 MB 00:01 
(2/2): python-setuptools-0.6.10-3.el6.no | 336 kB 00:00 
----------------------------------------------------------------
Total 755 kB/s | 1.9 MB 00:02 
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Importing GPG key 0x0608B895:
Userid : EPEL (6) <[email protected]>
Package: epel-release-6-8.noarch (@extras)
From : /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : python-setuptools-0.6.10-3.el6.noarch 1/2 
Installing : python-pip-7.1.0-1.el6.noarch 2/2 
Verifying : python-pip-7.1.0-1.el6.noarch 1/2 
Verifying : python-setuptools-0.6.10-3.el6.noarch 2/2


Installed:
python-pip.noarch 0:7.1.0-1.el6


Dependency Installed:
python-setuptools.noarch 0:0.6.10-3.el6


Complete!

OK 成功!

原文地址:https://www.cnblogs.com/adolfmc/p/12005028.html

时间: 2024-10-10 19:17:43

yum -y install pip No package pip available. Error: Nothing to do的相关文章

yum -y install与yum install有什么不同

yum -y install 包名(支持*) :自动选择y,全自动yum install 包名(支持*) :手动选择y or nyum remove 包名(不支持*)rpm -ivh 包名(支持*):安装rpm包rpm -e 包名(不支持*):卸载rpm包 yum -y install与yum install有什么不同

yum -y install python-devel

yum -y install python-devel的时候报错如图: Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=i386&repo=extras&infra=stock error was12: Timeout on http://mirrorlist.centos.org/?release=6&arch=i386&repo=extras&infra

安装g++,在centos上执行yum -y install gcc gcc-c++ libstdc++-devel

Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirrors.163.com * extras: mirrors.cqu.edu.cn * updates: mirrors.nwsuaf.edu.cn Setting up Install Process Resolving Dependencies --> Running transaction check -

解决安装yum -y install make gcc g++ gcc-c++ libtool autoconf automake imake mysql-devel libxml2-devel expat-devel后无法连接mysql

查看mysqld.log 日志: mysql日志 171210 19:38:22 [Note] Plugin 'FEDERATED' is disabled. 171210 19:38:22 InnoDB: The InnoDB memory heap is disabled 171210 19:38:22 InnoDB: Mutexes and rw_locks use GCC atomic builtins 171210 19:38:22 InnoDB: Compressed tables

Install check_mk OMD package on CentOS 6.5

yum -y install time traceroute boost-program-options dialog fping graphviz graphviz-gd httpd libevent libmcrypt libtool-ltdl mod_fcgid mysql-server net-snmp net-snmp-utils pango patch perl-Net-SNMP php php-mbstring php-pdo php-gd rsync uuid xinetd xo

CentOS 7中安装 MySQL 出现了 No package mysql-server available. Error: Nothing to do 错误

?CentOS?7?安装?mysql-server?爬坑 ?发现问题 在centos?6安装?mysql-server是直接使用命令?yum?-y?install?mysql-server?,但是在CentOS?7中出现了?No?package?mysql-server?available.?Error:?Nothing?to?do?错误.详细错误信息如下: [[email protected]?~]#?yum?-y?install?mysql-server Loaded?plugins:?fa

解决pip install package时Fatal error in launcher: Unable to create process using &#39;&quot;e:\python36\python3.exe&quot; &quot;E:\python36\Script\pip3.exe&quot;问题

pip 运行报错: 关于:Fatal error in launcher: Unable to create process using '"e:\python36\python3.exe"  "E:\python36\Script\pip3.exe"问题 由于安装tensorflow,下载 了Anaconda2环境,自此python有了2.7 和3.6两个版本,同时在tensorflow虚拟环境中安装了python3.5版本用来运行tensorflow. 今天本想

非root用户安装python,pip,package

安装python: 下载源码 解压 进入 ./configure --prefix=/path/python3.6 注意一定要设置prefix,否则默认安装到/usr/local make make install 没有make install,然后使用的话可能会报 ModuleNotFoundError: No module named '_ctypes' 错误 安装完成后进入指定的目录看一下,可以看到四个目录 安装pip: 我用源码安装python3之后,可以看到pip也顺带安装好了,不知道

词云:解决pip install wordcloud安装过程中报错“error: command &#39;x86_64-linux-gnu-gcc&#39; failed with exit status 1”问题

外部环境:ubuntu16.04, 64bits, 全局环境python2.7 在虚拟环境(python3.5)中执行 pip install wordcloud 时安装失败,报错: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 ---------------------------------------- Failed building wheel for wordcloud Running setup.py