# python3 Linux依赖库
Table of Contents
https://www.landui.com/help/show-7360
💬 回复: Jun (2018-07-22)
yum -y install gcc
💬 回复: Jun (2018-07-22)
python3.7,需要更多的依赖库(加粗字体是额外需要的依赖库)
yum -y install zlib zlib-devel
yum -y install bzip2 bzip2-devel
yum -y install ncurses ncurses-devel
yum -y install readline readline-devel
yum -y install openssl openssl-devel
yum -y install openssl-static
yum -y install xz lzma xz-devel
yum -y install sqlite sqlite-devel
yum -y install gdbm gdbm-devel
yum -y install tk tk-devel
yum -y install gcc
yum -y install libffi-devel
yum -y install wget
wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz (py3.7的包,官网链接)
tar -xvf Python-3.7.0.tgz
cd Python-3.7.0
./configure —prefix=/usr/python3
make && make install
ln -s /usr/python3/bin/python3 /usr/bin/python3
ln -s /usr/python3/bin/pip3 /usr/bin/pip3
💬 回复: Jun (2018-07-28)
需要注意的是:
搬瓦工centos6(x86和64)安装完python3.7.0以后,都无法用pip3 install 安装,会如下错误:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
在centos7(64)中安装python3.7.0后可以正常使用pip3 install