美文网首页
python安装

python安装

作者: 伊森H | 来源:发表于2019-03-29 10:34 被阅读0次

    说明:基于现有的服务器系统环境– Centos7 ,使用 yum 安装 python3.6 和 pip

    · 主要目标:

    1. 安装 EPEL 和 IUS 软件源

    2. 安装python3.6

    3. 创建 python3.6 链接符

    4. 安装 pip3

    5. 创建pip3链接符

    · 具体步骤:

    1. yum install epel-release -y

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

    3. yum install python36u -y

    4. ln -s /bin/python3.6 /bin/python3

    5. yum install python36u-pip -y

    6. ln -s /bin/pip3.6 /bin/pip3

    · 安装完成:

    1. 在终端输入 python3 可检查 python 安装情况

    2. 在终端输入 pip3 -V 可检查 pip3 安装情况

    · 备注:

    1. 安装也可以采用源码安装或其他方式,具体步骤可参考相关文档

    · 引用:

    1. http://blog.51cto.com/wenguonideshou/2083301

    相关文章

      网友评论

          本文标题:python安装

          本文链接:https://www.haomeiwen.com/subject/wvgkbqtx.html