“
All of the following operations are based on centos6.9.
python3.7Rely on openssl1.0.2, first update the OpenSSL of the system.
recommendations
Upgrade system to centos7 (system OpenSSL has been upgraded to 1.0.2)
cd /ddhome/tools
wget -c https://www.openssl.org/source/openssl-1.0.2p.tar.gz
tar -xf /ddhome/src # -xzvf can not be used here, otherwise python3.7 will not be able to install SSL module.Configuring SSLCD /ddhome/src./config shared zlib shared zlib is also indispensable.MaKe & & make installMV /usr/bin/openssl /usr/bin/openssl-1.0.1eMV /usr/include/openssl /usr/Include/openssl-1.0.1eLn -s /usr/local/ssl/bin/openssl /usr/bin/opensslLn -s /usr/local/ssl/includE/openssl/ /usr/include/opensslAdd library file path#ln -s /usr/local/ssl/lib/libssl.so /usr/local/lib64/libsSl.soEcho "/usr/local/ssl/lib" > > /etc/ld.so.conf#echo "/usr/local/lib64" > > /etc/ld.sO.confReplace the old version of libssl.so soft link[root@ddcvb openssl-1.0.2]# ll /usr/lib64/libssl.soLrwxrwxrwx. 1 rootRoot 16 Aug 25 15:22 /usr/lib64/libssl.so -> libssl.so.1.0.1e[root@ddcvb openssl-1.0.2]# ll /usr/lib64/libssl.so.10Lrwxrwxrwx. 1 root root 16 Aug 23 04:36 /usr/lib64/libssl.so.10 -> libssl.so.1.0.1eRM -rf /usr/lib64/libssl.soLn -s /usr/local/ssl/lib/libssl.so /usr/lib64/libssl.soRefreshing library filesLdconfig -vPay attention to/usr/lib64/libssl.so.10 do not delete, python2.7 uses it.View versionOpenSSL version -a
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
# 3.7Must be installedYum -y install libffi-devel
cd /ddhome/tools
wget -c https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
tar -xzvf Python-3.7.0 -C /ddhome/src
cd /ddhome/src
./configure
# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
wget -c https://files.pythonhosted.org/packages/90/50/4c315ce5d119f67189d1819629cae7908ca0b0a6c572980df5cc6942bc22/Twisted-18.7.0.tar.bz2
tar jxvf Twisted-18.7.0.tar.bz2
python3 setup.py install
cd /ddhome/src
make && make install
pip3 install request selenium scrapy
# centos
yum install -y tkinter tk-devel
# ubuntu
sudo apt-get install python-tk
pip3 install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pyecharts
# Geo Data extensions
pip3 install echarts-cities-pypkg
# Map extensions
pip3 install echarts-countries-pypkg
pip3 install echarts-china-provinces-pypkg
pip3 install echarts-china-cities-pypkg
pip3 install echarts-china-counties-pypkg
pip3 install echarts-china-misc-pypkg
pip3 install echarts-united-kingdom-pypkg
yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
# 3.7Must be installedYum -y install libffi-devel
cd /ddhome/tools
wget -c https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tgz
tar -xzvf Python-3.7.0 -C /ddhome/src
cd /ddhome/src
./configure
# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
wget -c https://files.pythonhosted.org/packages/90/50/4c315ce5d119f67189d1819629cae7908ca0b0a6c572980df5cc6942bc22/Twisted-18.7.0.tar.bz2
tar jxvf Twisted-18.7.0.tar.bz2
python3 setup.py install
cd /ddhome/src
make && make install
pip3 install request selenium scrapy
# centos
yum install -y tkinter tk-devel
# ubuntu
sudo apt-get install python-tk
pip3 install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pyecharts
# Geo Data extensions
pip3 install echarts-cities-pypkg
# Map extensions
pip3 install echarts-countries-pypkg
pip3 install echarts-china-provinces-pypkg
pip3 install echarts-china-cities-pypkg
pip3 install echarts-china-counties-pypkg
pip3 install echarts-china-misc-pypkg
pip3 install echarts-united-kingdom-pypkg
# Socket module helper for socket(2)
_socket socketmodule.c timemodule.c
# Socket module helper for SSL support; you must comment out the other
# socket line above, and possibly edit the SSL variable:
#SSL=/usr/local/ssl
_ssl _ssl.c \
-DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-L$(SSL)/lib -lssl -lcrypto
wget -c https://files.pythonhosted.org/packages/90/50/4c315ce5d119f67189d1819629cae7908ca0b0a6c572980df5cc6942bc22/Twisted-18.7.0.tar.bz2
tar jxvf Twisted-18.7.0.tar.bz2
python3 setup.py install
cd /ddhome/src
make && make install
pip3 install request selenium scrapy
# centos
yum install -y tkinter tk-devel
# ubuntu
sudo apt-get install python-tk
pip3 install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pyecharts
# Geo Data extensions
pip3 install echarts-cities-pypkg
# Map extensions
pip3 install echarts-countries-pypkg
pip3 install echarts-china-provinces-pypkg
pip3 install echarts-china-cities-pypkg
pip3 install echarts-china-counties-pypkg
pip3 install echarts-china-misc-pypkg
pip3 install echarts-united-kingdom-pypkg
cd /ddhome/src
make && make install
pip3 install request selenium scrapy
# centos
yum install -y tkinter tk-devel
# ubuntu
sudo apt-get install python-tk
pip3 install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pyecharts
# Geo Data extensions
pip3 install echarts-cities-pypkg
# Map extensions
pip3 install echarts-countries-pypkg
pip3 install echarts-china-provinces-pypkg
pip3 install echarts-china-cities-pypkg
pip3 install echarts-china-counties-pypkg
pip3 install echarts-china-misc-pypkg
pip3 install echarts-united-kingdom-pypkg
# centos
yum install -y tkinter tk-devel
# ubuntu
sudo apt-get install python-tk
pip3 install matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install seaborn scipy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
pip3 install pyecharts
# Geo Data extensions
pip3 install echarts-cities-pypkg
# Map extensions
pip3 install echarts-countries-pypkg
pip3 install echarts-china-provinces-pypkg
pip3 install echarts-china-cities-pypkg
pip3 install echarts-china-counties-pypkg
pip3 install echarts-china-misc-pypkg
pip3 install echarts-united-kingdom-pypkg
pip3 install pyecharts
# Geo Data extensions
pip3 install echarts-cities-pypkg
# Map extensions
pip3 install echarts-countries-pypkg
pip3 install echarts-china-provinces-pypkg
pip3 install echarts-china-cities-pypkg
pip3 install echarts-china-counties-pypkg
pip3 install echarts-china-misc-pypkg
pip3 install echarts-united-kingdom-pypkg