首页 > 编程语言 >centeros7升级python2.5.7到python3.5.2

centeros7升级python2.5.7到python3.5.2

时间:2023-04-28 14:01:37浏览次数:32  
标签:... no checking python2.5 whether python3.5 usr centeros7


centos 7 python2.7.5升级到3.5.2

下载python3.5.2

wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz

安装

  • 解压:tar -zxvf Python-3.5.2.tgz
  • 进入解压目录: cd Python-3.5.2
  • 创建安装目录: mkdir /usr/local/python3.5.2
  • 编译: ./configure --prefix=/usr/local/python3.5.2
  • 安装: make && make install
  • 备份原有python:mv /usr/bin/python /usr/bin/python_2.7.5
  • 创建软连接:ln -s /usr/local/python3.5.2/bin/python3.5 /usr/bin/python

 执行上面命令报错:

[root@root otp_src_R15B]# ./configure --prefix=/opt/erlang --with-ssl
Ignoring the --cache-file argument since it can cause the system to be erroneously configured
Disabling caching
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking for ld... ld
checking for GNU make... no
configure: error: GNU make is required!

执行以下命令:

         sudo yum -y install make gcc gcc-c++ kernel-devel m4 ncurses-devel openssl-devel

标签:...,no,checking,python2.5,whether,python3.5,usr,centeros7
From: https://blog.51cto.com/u_16091571/6234025

相关文章

  • VMware配置CenterOS7虚拟机的静态IP
    VMware安装CenterOS的操作步骤不在赘述。可参考:https://blog.csdn.net/zhiboqingyun/article/details/126555260如果你的电脑IP地址是静态的,请忽略第一步。如果是DHCP自动......
  • centerOS7下配置SVN
    1、获得管理员权限2.下载SVN2.1下载SVNyuminstallsubversion2.2查看版本svn--version3.创建SVN版本库3.1创建版本库目录sudomkdir-p/us......
  • Pycharm+PyQt5+Python3.5开发环境配置(详细教程)
    (目录)1Pycharm安装这个自行查找资料,有很多,这里不再赘述了~2Python3.5安装1.下载官网下载地址2.选择3.5(根据自身系统选择)版本下载3.下载完成,直接双击运行,即可......
  • CenterOS7安装docker
    CenterOS7安装docker官方文档卸载旧版本sudoyumremovedocker\docker-client\docker-client-latest\......
  • centeros7升级python2.5.7到python3.5.2
    centos7python2.7.5升级到3.5.2下载python3.5.2wgethttps://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz安装解压:tar-zxvfPython-3.5.2.tgz进入解压目录:cdPyt......
  • centos下python2.7.5升级到python3.5版本
    1.我们先下载python3.5的版本在我们的服务器任意一个文件夹,博主是放在home目录下,我们先进入到该目录:百度网盘python3.5.2下载链接:链接:https://pan.baidu.com/s/1Wp04mcKo......
  • CentOS 7下安装Python3.5
    CentOS7下安装Python3.5 CentOS7下安装Python3.5•安装python3.5可能使用的依赖yuminstallopenssl-develbzip2-develexpat-develgdbm-develreadline-devels......
  • ubuntu16.04安装python3.5
    今天用了下阿里云的云服务器,装个python3真是各种踩坑。记录下吧:ubuntu自带了2.7。想要装3.5并设置为默认python版本。安装python3.5  sudoadd-apt-repository......
  • ubuntu18.04如何安装python3.5及其pip安装
    安装python3.5,ubuntu18.04默认python3.6,该版本部分库没有资源无法安装,所以更换为python3.5参考原文链接:http://blog.itpub.net/69989353/viewspace-2738095/sudoapt-get......
  • Ubuntu16.04安装python3.5并设置为默认版本
    综述:ubuntu16.04版本之后,系统会自带python2.7版本,如果需要下载新版本的python3.5,需要进行更新安装一、下载python3.5 首先在ubuntu的终端ternimal输入命令:sudoapt-get......