我是靠谱客的博主 超级过客,这篇文章主要介绍centos安装python3,现在分享给大家,希望可以做个参考。

1.安装yum-utils

yum install yum-utils

2.安装yum-builddep

yum-builddep python

3.下载Python压缩包

wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz

4.解压

tar xf Python-3.7.0.tgz

5.配置,编辑,安装

cd Python-3.7.0

./configure

make

make install

6.安装相关模块

pip3 install 模块名

7.编写xx.py文件

8.执行xx.py文件

python3 xx.py

nohup python3 -u xx.py > xx.log 2>&1 &


转载于:https://blog.51cto.com/suyanzhu/2394911

最后

以上就是超级过客最近收集整理的关于centos安装python3的全部内容,更多相关centos安装python3内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(116)

评论列表共有 0 条评论

立即
投稿
返回
顶部