从官网下载最新的python3.7的tar包。
此处我们使用curl命令从网络上下载文件,选项“-O” 表示:把文件下载到本地。
#此处我们使用curl命令从网络上下载文件。
#选项“-O” 表示:把文件下载到本地。
wget -O https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
#解压文件:
tar xf Python-3.7.0.tar.xz
cd Python-3.7.0
#此时先安装python的依赖;
yum install bzip2-devel
yum install python-devel
yum install libffi-dev
yum install sqlite-devel
yum install libuuid-devel
yum install readline-devel
yum install mysql-devel
#然后配置安装环境,编译,在安装。
./configure --prefix=/opt/python/ ,安装: make && make install
#但是在安装成功后,再次安装ipython时:
pip3.7 install ipython 报错如下:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ”SSLError("Can't connect to HTTPS URL because the