Redhat7/centOs7 安装配置python3.6.5

Posted Donser

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Redhat7/centOs7 安装配置python3.6.5相关的知识,希望对你有一定的参考价值。

wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
mkdir /usr/local/python3 
tar -xvJf  Python-3.6.5.tar.xz
cd Python-3.6.5
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
ln -f  -s /usr/local/python3/bin/python3 /usr/bin/python

vi /usr/bin/yum                                    把#! /usr/bin/python修改为#! /usr/bin/python2

 vi /usr/libexec/urlgrabber-ext-down   文件里面的#! /usr/bin/python 也要修改为#! /usr/bin/python2

 

安装其他环境

pip3 install PyQt5

pip3 install Qt.py

wget http://www.pyqtgraph.org/downloads/0.10.0/pyqtgraph-0.10.0.tar.gz

tar xvzf pyqtgraph-0.10.0.tar.gz

cd pyqtgraph-0.10.0/

python3 setup.py install

https://codeload.github.com/xmikos/soapy_power/zip/master

 

 

以上是关于Redhat7/centOs7 安装配置python3.6.5的主要内容,如果未能解决你的问题,请参考以下文章

在VM虚拟机中安装Redhat7 / CentOs7

Redhat7/Centos7 修改默认启动内核方法二

redhat7(centos7) not registered to Red Hat Subscription Management

RedHat7/Centos7修改默认网卡名为eth0

CentOS7入门到精通实战课程课后习题

CloudStack+KVM环境搭建(步骤很详细,说明ClockStack是用来管理虚拟机的)