当前位置:   article > 正文

centos安装python3_yum install python3

yum install python3

安装

(一)yum 安装

  1. 安装
  2. (一)yum 安装
  3. # 阿里云的yum源
  4. yum -y install epel-release
  5. yum repolist
  6. # 执行安装
  7. yum -y install python36
  8. # 或执行安装
  9. yum install -y python3 python3-deve

whereis python
python: /usr/bin/python2.7 /usr/bin/python /usr/bin/python3.4 /usr/bin/python3.4m /usr/lib/python2.7 /usr/lib/python3.4 /usr/lib64/python2.7 /usr/lib64/python3.4 /etc/python /usr/include/python2.7 /usr/include/python3.4m /usr/share/man/man1/python.1.gz
 
cd /usr/bin/
rm /usr/bin/python
ln -s /usr/bin/python3.6 usr/python/python
————————————————
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py && python get-pip.py

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/AllinToyou/article/detail/328075
推荐阅读
相关标签
  

闽ICP备14008679号