流年似水博客开通了,本站主要是写关于Web和大数据方面内容,正在更新中,欢迎大家光临!
  1. 文章:97 篇
  2. 总浏览:33,721 次
  3. 评论:22条
  4. 最后更新:2020-06-08
  5. 分类目录:39 个

Linux之CentOS7如何安装Python?

Linux l, xy 160℃ 0评论

CentOS7如何安装Python?

一、CentOS7安装Python2.7

  • 步骤一: 安装Python2.7

    sudo yum install python27

  • 步骤二:验证Python2.7是否安装

    1. source /opt/rh/python27/enable
    2. python --version

    python-install
    如果输出Python2.7.x则代表安装成功

二、CentOS7安装Python3.5

  • 步骤一:添加python yum库

    sudo yum install -y https://centos7.iuscommunity.org/ius-release.rpm

  • 步骤二:更新yum库

    sudo yum update -y

  • 步骤三:安装Python3.5以及pip

    sudo yum install -y python35u python35u-libs python35u-devel python35u-pip

  • 步骤四:验证是否安装成功

    python --version
    如果输出版本Python 3.5.x 则代表安装成功

转载请注明:流年似水 » Linux之CentOS7如何安装Python?

喜欢 (0)or分享 (0)

Warning: copy(https://cn.gravatar.com/avatar/?s=54&d=%2Fwp-content%2Fthemes%2Fyusi1.0%2Fimg%2Fdefault.png&r=g): failed to open stream: HTTP request failed! HTTP/1.1 400 Bad Request in /usr/share/nginx/html/timewentby/wp-content/themes/yusi1.0/functions.php on line 239

Warning: copy(/wp-content/themes/yusi1.0/img/default.png): failed to open stream: No such file or directory in /usr/share/nginx/html/timewentby/wp-content/themes/yusi1.0/functions.php on line 243
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址