欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

centos6.5安裝python3.7和opencv-python記錄

系統 1933 0

之前自己做實驗全部用的centos7版本的系統,現在要部署到指定服務器,而指定的服務器確是centso6.5版本,因此本來兩個命令即可解決的事情,最后遇到了那么多問題需要解決。

1、問題:ModuleNotFoundError: No module named '_ctypes'

解決辦法:

yum install libffi-devel -y #有疑問,可能不行

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libffi-devel-3.0.13-18.el7.x86_64.rpm

rpm -ivh libffi-devel-3.0.13-18.el7.x86_64.rpm

再make install #只的是對python3.7

2、問題:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting virtualenv
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 SSL module is not available.")': /simple/virtualenv/
Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenv/
Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenv/
Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenv/
Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/virtualenv/
Could not fetch URL https://pypi.org/simple/virtualenv/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/virtualenv/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
Could not find a version that satisfies the requirement virtualenv (from versions: )
No matching distribution found for virtualenv
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

解決辦法:

wget https://www.openssl.org/source/openssl-1.1.1a.tar.gz

tar -zxvf openssl-1.1.1a.tar.gz

cd openssl-1.1.1a

./config --prefix=/usr/local/openssl no-zlib

make

make install

mv /usr/bin/openssl /usr/bin/openssl.bak #可直接刪除,不留備份

mv /usr/include/openssl/ /usr/include/openssl.bak #可直接刪除,不留備份

ln -s /usr/local/openssl/include/openssl /usr/include/openssl
ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/local/lib64/libssl.so
ln -s /usr/local/openssl/bin/openssl /usr/bin/openssl

echo "/usr/local/openssl/lib" >> /etc/ld.so.conf

ldconfig -v

openssl version

ln -s /usr/local/openssl/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1

ln -s /usr/local/openssl/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

重新編譯python.

3、問題:centos ImportError: libSM.so*: cannot open shared object file:

解決辦法:

yum whatprovides libSM.so.6

yum install libSM* --setopt=protected_multilib=false

4、問題:centos ImportError: libXrender.so.1: cannot open shared object file:

解決辦法:

yum install libXrender

5、問題:centos ImportError: libXrender.so.1: cannot open shared object file:

解決辦法:yum install libXext

6、python3.7安裝步驟:

?? yum -y groupinstall "Development tools"
?? yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel?
?? yum -y install db4-devel libpcap-devel xz-devel
?? yum install libffi-devel -y
?? wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
???tar -xvJf ?Python-3.7.0.tar.xz
?? mkdir /usr/local/python3
? ?cd Python-3.7.0
? ?./configure --prefix=/usr/local/python3 --with-openssl=/usr/local/openssl --enable-optimizations
?? make && make install
?? python3 -V
?? ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
?? ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
? ?python3 -V
? ?pip3 -V

7、安裝服務依賴:

pip3 install -U werkzeug

pip3 install gunicorn

pip3 install requests

8、注意:

所有安裝包在安裝之前都要檢查有沒有把之前的老版本清理干凈。

?


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 国产成人精品高清在线观看99 | a黄在线观看 | 国内久久精品 | 性少妇videosexfreexx入片 | 国产专区欧美 | 天天色综网 | 欧美伊人久久综合网 | 一区二区三区免费在线 | 欧美日韩视频在线第一区 | 五月天综合婷婷 | 欧美精品一区二区三区在线播放 | 午夜影院18 | 久久亚 | 婷婷色国产偷v国产偷v小说 | 日韩精品中文字幕视频一区 | 久久免费视频7 | 久久久亚洲欧洲日产国码606 | 91精品啪国产在线观看免费牛牛 | 久久综合九色综合欧美狠狠 | 欧美精彩视频在线观看 | 中国明星一级毛片免费 | 亚洲成人免费网站 | 狠狠伊人 | 午夜性啪啪A片免费AAA毛片 | 夭天曰天天躁天天摸在线观看 | 99热精品在线观看 | 九九精品视频一区二区三区 | 亚洲欧美日韩精品久久奇米色影视 | 精品欧美乱码久久久久久1区2区 | 欧美伊人| 看一天影院 理论片 | 九一国产在线观看免费 | 五月婷婷六月丁香 | 欧美伊人 | 国产精品日本无码久久一 | 日本粉嫩一区二区三区视频 | 久草论坛 | 亚洲国产日韩欧美在线 | 91成人小视频 | 国产精品密蕾丝视频下载 | 5月婷婷6月丁香 |