• 欢迎访问小杰博客网站
  • 欢迎访问小杰博客网站哦

centos安装Python3.5并设置为默认

未分类 小杰 7年前 (2017-02-19) 1338次浏览 已收录 0个评论

sudo yum install yum-utils

curl -O https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz

 tar xf Python-3.5.0.tgz

 cd Python-3.5.0
 ./configure
 make
 sudo make install

python3 –version

If you want to use python3 as your default Python interpreter, you can define the following alias in your .bashrc.

软连接,使得调用Python相当于调用Python3


小杰博客 , 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:centos安装Python3.5并设置为默认
喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

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

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