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

centeros7升级python2.5.7到python3.5.2

时间:2022-11-27 15:32:24浏览次数:43  
标签:... python python2.5 nochecking 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

标签:...,python,python2.5,nochecking,whether,python3.5,usr,centeros7
From: https://blog.51cto.com/u_13991401/5890086

相关文章

  • 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......
  • 牛客网笔试输入输出处理方法总结(基于Python3.5)
    牛客网判题系统输入处理牛客网上的输入输出借鉴ACM模式给出,对于习惯了leetcode函数定义形式解题的小伙伴们来说确实比较生疏。为了避免在之后的笔试中再次吃亏,在这里对牛......