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 &


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章