全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1273|回复: 10

centos 6 装Pip 失败,

[复制链接]
发表于 2018-8-15 17:19:49 | 显示全部楼层 |阅读模式
  1. [root[url=home.php?mod=space&uid=22998]@localhost[/url] bin]# yum install zlib zlib-devel
  2. Loaded plugins: fastestmirror
  3. Loading mirror speeds from cached hostfile
  4. * base: mirrors.aliyun.com
  5. * extras: mirrors.aliyun.com
  6. * updates: mirrors.shu.edu.cn
  7. Setting up Install Process
  8. Package zlib-1.2.3-29.el6.x86_64 already installed and latest version
  9. Package zlib-devel-1.2.3-29.el6.x86_64 already installed and latest version
  10. Nothing to do
  11. [root@localhost bin]# cd
  12. [root@localhost ~]# python3 get-pip.py
  13. Traceback (most recent call last):
  14.   File "get-pip.py", line 20651, in <module>
  15.     main()
  16.   File "get-pip.py", line 197, in main
  17.     bootstrap(tmpdir=tmpdir)
  18.   File "get-pip.py", line 82, in bootstrap
  19.     import pip._internal
  20. zipimport.ZipImportError: can't decompress data; zlib not available
  21. [root@localhost ~]#
复制代码
发表于 2018-8-15 17:33:39 | 显示全部楼层
https://blog.csdn.net/u014749862/article/details/54430022
发表于 2018-8-15 18:05:59 | 显示全部楼层
是python  pip吗?
 楼主| 发表于 2018-8-15 18:08:02 | 显示全部楼层

恩,python3 编译成功了,pip3 不成功
发表于 2018-8-15 18:10:14 | 显示全部楼层
centos安装pip比较麻烦,需要下先安装依赖,然后安装setup tools,再安装pip
发表于 2018-8-15 18:10:21 来自手机 | 显示全部楼层
我装2.7没问题
发表于 2018-8-15 18:13:31 | 显示全部楼层
zlib not available
发表于 2018-8-15 20:06:28 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
发表于 2018-8-15 20:18:20 | 显示全部楼层
编译python3之前请自行把以下依赖安装:
  1. yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel
复制代码


安装好后编译完成后pip直接就可以使用
 楼主| 发表于 2018-8-15 20:47:43 | 显示全部楼层
eqblog 发表于 2018-8-15 20:18
编译python3之前请自行把以下依赖安装:

这些依赖已经装了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2026-3-7 19:21 , Processed in 0.062607 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表