Loading... <div class="tip share">请注意,本文编写于 1203 天前,最后修改于 632 天前,其中某些信息可能已经过时。</div> ## 前言 由于要配置安装一下[萌咖](https://moeclub.org/ "萌咖")大佬和[sxyz](https://sxyz.blog/ "sxyz")大佬用`Python3`写的`OneDrive`目录程序`OneList`。而`CentOS7`系统自带的是`Python2.7`,所以要在主机上配置`Python3`环境。 > `CentOS7`安装`Python3`有很多种方法,这里推荐使用`yum`源进行安装,方便以后的软件管理。 ## 安装`IUS`软件源 IUS软件源中包含了`Python3.6`,可以使用IUS软件源安装`Python3.6` ```bash #安装EPEL依赖 yum install epel-release #安装IUS软件源 yum install https://centos7.iuscommunity.org/ius-release.rpm ``` ## 安装Python3.6 ```bash yum install python36u ``` 安装Python3完成后的`shell`命令为`python3.6`。那么我为了使用方便,创建了一个到`python3`的符号链接 ```bash ln -s /usr/bin/python3.6 /usr/bin/python3 ``` ## 安装`pip3` 安装完成`python36u`并没有安装`pip`,安装`pip` ```bash yum install python36u-pip ``` 安装`pip`完成后的`shel`l命令为`pip3.6`,为了使用方便,创建一个到`pip3`的符号链接 ```bash ln -s /usr/bin/pip3.6 /usr/bin/pip3 ``` 最后修改:2020 年 10 月 11 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏