Python3.7.2安装
yum install -y openssl-devel bzip2-devel expat-devel gdbm-devel readline-devel sqlite-devel gcc libffi-devel libcurl-develwget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tgztar -zxf Python-3.7.2.tgz
cd Python-3.7.2
./configure --prefix=/usr/local/python3
make && make installln -s /usr/local/python3/bin/python3 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3错误处理
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.wget http://www.openssl.org/source/openssl-1.1.1.tar.gz --no-check-certificate
tar -zxvf openssl-1.1.1.tar.gz
cd openssl-1.1.1
./config --prefix=/usr/local/openssl shared zlib
make
make install
rm -rf /usr/bin/openssl
rm -rf /usr/lib64/libssl.so.1.1
rm -rf /usr/lib64/libcrypto.so.1.1
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib64/
ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib64/
openssl version安装scrapy
最后更新于