升级python2至python3解决依赖关系
1.最小化安装centos7,在升级python3的时候会出现很多包未安装,为解决依赖关系:
yum -y install gcc gcc-c++ zlib zlib-devel libffi-devel deltarpm kernel-devel kernel-headers make
yum -y install bzip2 bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel
yum -y install xz-devel
# 为什么要分三步?因为在安装过程中一次性安装的时候,我的服务器出现了这个报错:
zvbi-fonts-0.2.35-1.el6.noarch: [Errno 256] No more mirrors to try
分开一步步安装则不报错了
wget https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tgz
tar xf Python-3.6.1.tgz
cd Python-3.6.1/
./configure --prefix=/usr/local/python/python3
make
make install
mv /usr/bin/python /usr/bin/python.bak
ln -s /usr/local/python/python3/bin/python3 /usr/bin/python
ln -s /usr/local/python/python3/bin/pip3 /usr/bin/pip
vi /usr/bin/yum
vi /usr/libexec/urlgrabber-ext-down
# 修改/usr/bin/yum和/usr/libexec/urlgrabber-ext-down,将 #!/usr/bin/python 改为 #!/usr/bin/python2.7
2. 这样升级出来的Python3就自动安装了setuptools和pip:
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAjwAAABVCAYAAABNaz4hAAAXFUlEQVR4nO2dvW6rThPG57z634UblKRJTZnOUpQqvgJcukgTpUtL6y46TQqX9hU4VRTJnUvXaU4iGl9HXpYFzMICs3gxmDw/aXRO7PHOMjssy37+IaIfAgAAAAAYMP/rOgMAAAAAAG2DBg8AAAAABg8aPAAAAAAYPGjwAAAAAGDwlDZ4XH9L+/0+la3vmqfuLZU09vslecfo9QKX/G2Yx2V/cwgMOav4AwAA0ARtg8db7ml9+0GT0YhGkTzT92xNxs/41TT+/Ygmi+B4vRYR17zf+tSgWTdouvLLSe32IP4AAAC0y3+FT8K33fl4Q88jn3bphyuaTq7Ivz5l1vrKjvybEfldZwMAAAAAbHI9PC75D2OizXvYxMmx88nPf+j6tFWGArbUZOTLnHhYKWNb3/uU18vnz6Nl/N08vG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rFCkhPPJvVVnymP5+i0c2M9EwzqDW6cCkSPSzzHrjgHs2oSfvMhWnvpncP90U9yDZ6wJerrn0DXssRIFpkusGV3pkpcMOkwSxmGeg3GKGVrun5CF1dPD9cvB7hvPjy9uGE6fqC/UffOe28r1OP8rH+TlI08PXb8zI0/fTxX5Y+DPr1valq/2U6vQDSHrFmjOxoCGd+p3f3xnLQ+vsDq47l5faXHrH6xV77l9bP6XODqZVI27Pk5rt6IiRs7oiGqX3BSPSetaY+lvfTO7/7oC8Uentt5cVwxDJC5MnksDuzMBDjX/0szp2ggClAxB0idyk/+Uu1uNNILW/iFbk0RxGkXppjIlb8G3QRerh4Xvl9SPr94E22ZenKc3iHHCWjRZDlBK5j7WY7551edJcTzlbITMF2f/lY52pKfefGXDC9mV2XIPa6OQpNesHhp3qi1mp4XvixlCitepVaeXrIkWj+HYee/5rr7k2GB15Jever07MKPZ268JFTHvWH9YlC+1XYP8aysvoyfC9lhc65exnDF/Wa7fqa0sSOGl8onPicvjro5aWW2q+LPdnpN7g+QkNuNMN6xca9KcXdYudNj8r3Y8bF8t858mrldLY/W09lV81eeFlcvltrdck38IkXu9Flvn6tnY9dUuQuoXg67e+p3ndbbN/RzoYzzO5Jqvq8pG3t+5sQfpburpul4TXdaTvzsqz7U7KpqVm716ZmI6re660zioWqnWc8gf3Xp6es11S/mZcKLZ2a8sOKeU780Kd86u5TWfbXXzNVj3W+m9UaVlMeAtkyU+5cbqxU6ttMzuj8gsXSeAYhVsXv0BaQPYrtMESPDFpQvBKITnJY+MIpbjgMAAADgv64zACyRjE2TGJ6+6e1kZQAAAKAL/pDs6gEAAAAAGCwY0gIAAADA4MGQFgC/DW6f7p9WcwEAACcFPTwAAAAAGDxo8AAAAABg8PwfyHAxLumhp9wAAAAASUVORK5CYII=" alt="" />
pip的位置是在/usr/local/python/python3/bin/目录下,并不在/usr/local/python/python3/lib/python3.5/site-packages/下,找了十分钟才找到解决办法.
[root@www bin]# pip -V
pip 9.0.1 from /usr/local/python/python3/lib/python3.6/site-packages (python 3.6)
python2.7安装pip
wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
python ez_setup.py --insecure
wget https://pypi.python.org/packages/11/b6/abcb525026a4be042b486df43905d6893fb04f05aac21c32c638e939e447/pip-9.0.1.tar.gz
tar -xf pip-9.0.1.tar.gz
cd pip-9.0.1
python setup.py install
升级python2至python3解决依赖关系的更多相关文章
- 装python package 时,conda提示会升级python2到python3,那可能是你的windows不支持py2env下的此包。
装python package 时,conda提示会升级python2到python3, 那可能是你的windows不支持py2env下的此包.比如:win 下,tensorflow就不支持py2的环 ...
- Centos6.6升级python2到python3
系统更新部分: 一.由于系统原有的源无法连接,需要更新为新的源.起初,首选163的源,但是由于更改源以后,无法使用yum等问题,所以直接使用上海交通大学提供的源. 修改前,将原来/etc/yum.re ...
- Debian 8中dpkg -i自动解决依赖关系
dpkg -i 后#apt-get update &&apt-get -f install
- [Unity3d][NGUI]两种思路解决AssetBundle的依赖关系.
接上文. 使用上文中的AssetBundle打包方式生成的文件包括了依赖关系中的文件. 一般的使用中并不会发现什么问题. 可是当配合NGUI的时候,使用dynamicFont时打包AssetBundl ...
- Python2 和 Python3 共存于 Centos7
一.解决Python2 pip问题 centos7自带的是Python2,但是并没有安装pip,我们需要自行安装 包名为 python-pip # yum install epel-release - ...
- 【译】Gradle 的依赖关系处理不当,可能导致你编译异常
文章 | Ashesh Bharadwaj 翻译 | 承香墨影 授权 承香墨影 翻译.编辑并发布 在 Android Studio 中,Gradle 构建过程对于开发者来说,很大程度上是抽象的.作为一 ...
- 安装deb包解决依赖问题
在使用 dpkg -i 安装deb包后,会出现依赖关系而不能正常安装软件,这个时候先更新下源然后解决依赖关系后重装即可. sudo apt-get update # 更新 sudo apt-get - ...
- yum 下载rpm包 安装rpm包依赖关系
方法一:yumdownloader 工具 1.安装工具包 yum install yum-utils -y 2.下载一个RPM包 yumdownloader <package-name> ...
- CentOS6.x 安装升级Python2.7.x Python3.4.x
CentOS6.x 安装升级Python2.7.x Python3.4.x 2015-06-07• CentOS.Linux • 评论关闭 CentOS release 6.6 (Final) 安装升 ...
随机推荐
- gdb插件使用方法
0x00 peda peda 安装: git clone https://github.com/longld/peda.git ~/peda echo "source ~/peda/peda ...
- [CODEVS] 2193 数字三角形WW
数字三角形必须经过某一个点,使之走的路程和最大 从必须经过的点,向上向下分别DP两次的和即为答案. 还有一种思路是把和必须经过点同一行的设为-INF,这样就一定(大概)不会选择它们了. //Write ...
- 【Java_多线程并发编程】JUC原子类——4种原子类
根据修改的数据类型,可以将JUC包中的原子操作类可以分为4种,分别是: 1. 基本类型: AtomicInteger, AtomicLong, AtomicBoolean ;2. 数组类型: Atom ...
- (58)zabbix网络拓扑图配置network map
zabbix网络地图介绍 “zabbix network map”可以简单的理解为动态网络拓扑图,可以针对业务来配置zabbix map, 通过map可以了解应用的整体状况:服务器是否异常.网络是否有 ...
- (35)zabbix Event acknowledgment事件确认
概述 以往服务器出现报警,运维人员处理完事之后,报警自动取消,但是下一次出现同样一个错误,但是换了一个运维人员,他可能需要重新排查问题,直到问题处理完毕. 针对这种情况,zabbix提供了event ...
- MySQL-简要说明
分类 安装发展顺序分为: 网状型数据库 层次型数据库 关系型数据库 面向对象数据库 主流:关系型数据库 关系型数据库 事务transaction: 多个操作被当作一个整体对待 • ACID: ...
- 重置windows用户漫游配置文件
1.备份用户数据 2.删除或修改漫游配置文件 3.用户PC管理员登陆,删除本地用户缓存文件 注册表打开: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows N ...
- PHP发送邮件标题乱码的解决
遇到问题:PHPMailer发送邮件时中文乱码,本来我的系统都是英文内容的,后来需求变化需要在标题中添加中文,但是在使用安卓自带邮件工具收取是出现乱码,而使用QQ邮箱查看确实正常的. 解决方法: 先用 ...
- Beyond Compare 30天评估期结束解决办法
打开Beyond Compare 4,提示已经超出30天试用期限制 解决方法: 1.修改文件 修改C:\Program Files\Beyond Compare 4\BCUnrar.dll ,这个文件 ...
- 2,格式化输出and编码基础
格式化输出: input格式化输出: name = input('请输入姓名:') name = input('请输入姓名:') Age = int(input('请输入年龄:')) job = in ...