问题的由来 现在有一个python3写的django项目,和一台老服务器 服务器上没有安装python3,是Centos6.10系统
OpenSSL 版本升级 查看openssl版本
下载指定版本的openssl软件 https://www.openssl.org/source/
1 wget https://www.openssl.org/source /openssl-1.1.1g.tar.gz
编译安装 1 2 3 cd openssl-1.1.0k./config shared zlib make && make install
配置 1 2 3 4 5 6 7 8 mv /usr/bin/openssl /usr/bin/openssl.bak mv /usr/include/openssl /usr/include/openssl.bak find / -name openssl ln -s /usr/local /bin/openssl /usr/bin/openssl ln -s /usr/local /include/openssl /usr/include/openssl echo "/usr/local/lib64/" >> /etc/ld.so.confldconfig openssl version -a
sqlite 安装 https://www.sqlite.org/download.html
1 2 3 4 5 6 7 wget https://www.sqlite.org/2020/sqlite-amalgamation-3330000.zip tar xvzf sqlite-autoconf-333000.tar.gz cd sqlite-autoconf-333000./configure make sudo make install sudo yum install sqlite-devel
uuid 安装 1 yum install libuuid-devel
python3 安装 https://www.python.org/downloads/source/
1 2 3 4 5 6 7 8 9 yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tgz tar -zxvf Python-3.8.5.tgz cd Python-3.8.5./configure --prefix=/usr/local /python3 make make install ln -s /usr/local /python3/bin/python3 /usr/bin/python3 ln -s /usr/local /python3/bin/pip3 /usr/bin/pip3