1、安装依赖包./configure --prefix=/usr/local/python3.5 --enable-shared make make installyum groupinstall Development Toolsyum install zlib-devel bzip2-devel openssl-devel ncurses-devel -y2、下...
1、安装依赖包
./configure --prefix=/usr/local/python3.5 --enable-shared make && make install
yum groupinstall 'Development Tools'
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel -y
2、下载python3.5安装包
wget --no-check-certificate https://www.python.org/ftp/python/3.5.0/Python-3.5.0.tgz
3、解压安装包
tar -zxvf Python-3.5.0.tgz
4、安装python3.5
cd Python-3.5.0
./configure --prefix=/usr/local/python3
make && make install
echo 'export PATH=$PATH:/usr/local/python3/bin' >> ~/.bashrc
5、创建链接
ln -s /usr/local/python3.5/bin/python3 /usr/bin/python3
cp -R /usr/local/python3.5/lib/* /usr/lib64/
6、测试安装是否成功
[root@h3 ~]# python3
Python 3.5.0 (default, Jan 25 2019, 11:18:20)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-23)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
本文标题为:在centos6.4下安装python3.5
基础教程推荐
- Python爬取当网书籍数据并数据可视化展示 2023-08-11
- python的环境conda简介 2022-10-20
- ubuntu 18 python3.6 的安装与 python2的版本切换 2023-09-03
- Centos7下安装python环境 2023-09-04
- Python基础学习之函数和代码复用详解 2022-09-02
- 四步教你学会打包一个新的Python模块 2022-10-20
- 基于Python实现股票数据分析的可视化 2023-08-04
- centos系统 anaconda3(python3)安装pygrib 2023-09-04
- Python 中 Elias Delta 编码详情 2023-08-08
- CentOS 7.5 安装 Python3.7 2023-09-03