python3.6与3.7有什么区别_Python3.6.6和Python3.7.0的坑
Python3.7.0 需要openssl1.1.0,配置麻煩
由于要趕時間使用。所以先用了簡單方案。換回Python3.6.6使用。
安裝方法:
wget https://www.python.org/ftp/python/3.6.6/Python-3.6.6.tgz
tar xzf Python-3.6.6.tgz
cd Python-3.6.6
./configure –enable-optimizations
make
make install
然后使用
curl https://bootstrap.pypa.io/get-pip.py | python3
安裝pip,之后可以正常使用。
后續又搜索了一下安裝和升級Openssl的方法。
1、安裝依賴
yum install -y zlib
2、編譯和安裝
wget http://www.openssl.org/source/openssl-1.0.2j.tar.gz
tar -xzf openssl-1.0.2j.tar.gz
cd openssl-1.0.2j
./config shared zlib
./config -t
make
make install
openssl version #查看版本
mv /usr/bin/openssl /usr/bin/openssl.bak
mv /usr/include/openssl /usr/include/openssl.bak
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
ln -s /usr/local/ssl/include/openssl /usr/include/openssl
#配置庫文件搜索路徑
echo “/usr/local/ssl/lib” >> /etc/ld.so.conf
ldconfig -v
喜歡 (0)or分享 (0)
總結
以上是生活随笔為你收集整理的python3.6与3.7有什么区别_Python3.6.6和Python3.7.0的坑的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 神经网络的输出层有哪些_神经网络算法—总
- 下一篇: python什么是关键字参数_Pytho