centos7 yum 安裝 python3.6

wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
yum install python36 python36-devel -y
curl https://bootstrap.pypa.io/get-pip.py|python3.6

mkdir ~/.pip

cat > ~/.pip/pip.conf <<EOF
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/

[install]
trusted-host=mirrors.aliyun.com
EOF

pip3.6 install xxxxxx 用3.6的pip安裝模塊
python3.6 xxxx.py 用python3.6執行腳本

centos7 yum 安裝 python3.6

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