pip安裝py_zipkin時(shí)提示的SSL問題對(duì)應(yīng)
python的應(yīng)用實(shí)踐zipkin,需要py_zipkin,使用pip進(jìn)行安裝py_zipkin的時(shí)候出現(xiàn)問題, 根據(jù)stackoverflow的信息設(shè)定了pypi.org 和 files.pythonhosted.org解決了問題。
問題現(xiàn)象
[root@kong ~]# pip install py_zipkin Collecting py_zipkin Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /packages/ef/87/e8fc3f124d491e635023a71f256769691037fc1451e5f5fb73846d6322d8/py_zipkin-0.11.0-py2.py3-none-any.whl ...省略 Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)': /packages/ef/87/e8fc3f124d491e635023a71f256769691037fc1451e5f5fb73846d6322d8/py_zipkin-0.11.0-py2.py3-none-any.whl Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/ef/87/e8fc3f124d491e635023a71f256769691037fc1451e5f5fb73846d6322d8/py_zipkin-0.11.0-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:579)'),)) [root@kong ~]#
安裝命令
pip install –trusted-host pypi.org –trusted-host files.pythonhosted.org py-zipkin
出現(xiàn)問題,需要安裝python-devel,在ubuntu等上名為python-dev
[root@kong ~]# pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org py-zipkin Collecting py-zipkin Downloading https://files.pythonhosted.org/packages/ef/87/e8fc3f124d491e635023a71f256769691037fc1451e5f5fb73846d6322d8/py_zipkin-0.11.0-py2.py3-none-any.whl Collecting thriftpy (from py-zipkin) ...省略 gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c thriftpy/transport/cybase.c -o build/temp.linux-x86_64-2.7/thriftpy/transport/cybase.o thriftpy/transport/cybase.c:13:20: fatal error: Python.h: No such file or directory #include "Python.h"
安裝日志
再次執(zhí)行,安裝成功
[root@kong ~]# pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org py-zipkin Collecting py-zipkin Downloading https://files.pythonhosted.org/packages/ef/87/e8fc3f124d491e635023a71f256769691037fc1451e5f5fb73846d6322d8/py_zipkin-0.11.0-py2.py3-none-any.whl Requirement already satisfied: six in /usr/lib/python2.7/site-packages (from py-zipkin) (1.11.0) Collecting thriftpy (from py-zipkin) Downloading https://files.pythonhosted.org/packages/f4/19/cca118cf7d2087310dbc8bd70dc7df0c1320f2652873a93d06d7ba356d4a/thriftpy-0.3.9.tar.gz (208kB) 100% |################################| 215kB 2.0MB/s Requirement already satisfied: ply<4.0,>=3.4 in /usr/lib/python2.7/site-packages (from thriftpy->py-zipkin) (3.11) Building wheels for collected packages: thriftpy Running setup.py bdist_wheel for thriftpy ... done Stored in directory: /root/.cache/pip/wheels/64/ff/0b/00a7ab5df78f8360908e34744eb78c2c537a327a295da5c260 Successfully built thriftpy Installing collected packages: thriftpy, py-zipkin Successfully installed py-zipkin-0.11.0 thriftpy-0.3.9 [root@kong ~]#
參考文檔
總結(jié)
以上就是這篇文章的全部內(nèi)容了,希望本文的內(nèi)容對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,謝謝大家對(duì)腳本之家的支持。如果你想了解更多相關(guān)內(nèi)容請(qǐng)查看下面相關(guān)鏈接
- 詳解python使用pip安裝第三方庫(工具包)速度慢、超時(shí)、失敗的解決方案
- Linux下Python安裝完成后使用pip命令的詳細(xì)教程
- 修改默認(rèn)的pip版本為對(duì)應(yīng)python2.7的方法
- 更改Python的pip install 默認(rèn)安裝依賴路徑方法詳解
- 解決python "No module named pip"的問題
- python中pip的安裝與使用教程
- Python中pip更新和三方插件安裝說明
- Python2.7.10以上pip更新及其他包的安裝教程
- Centos 升級(jí)到python3后pip 無法使用的解決方法
- 解決python升級(jí)引起的pip執(zhí)行錯(cuò)誤的問題
相關(guān)文章
Python采集某評(píng)論區(qū)內(nèi)容的實(shí)現(xiàn)示例
本文主要介紹了Python采集某評(píng)論區(qū)內(nèi)容的實(shí)現(xiàn)示例,文中通過示例代碼介紹的非常詳細(xì),對(duì)大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)學(xué)習(xí)吧2023-04-04Python中利用sorted()函數(shù)排序的簡單教程
這篇文章主要介紹了Python中利用sorted()函數(shù)排序的簡單教程,sorted()函數(shù)有返回值,在Python的排序?qū)崿F(xiàn)中發(fā)揮著相當(dāng)重要的作用,需要的朋友可以參考下2015-04-04基于Python數(shù)據(jù)結(jié)構(gòu)之遞歸與回溯搜索
今天小編就為大家分享一篇基于Python數(shù)據(jù)結(jié)構(gòu)之遞歸與回溯搜索,具有很好的參考價(jià)值,希望對(duì)大家有所幫助。一起跟隨小編過來看看吧2020-02-02python讀取json數(shù)據(jù)還原表格批量轉(zhuǎn)換成html
這篇文章主要介紹了python讀取json數(shù)據(jù)還原表格批量轉(zhuǎn)換成html,由于需要對(duì)ocr識(shí)別系統(tǒng)的表格識(shí)別結(jié)果做驗(yàn)證,通過返回的json文件結(jié)果對(duì)比比較麻煩,故需要將json文件里面的識(shí)別結(jié)果還原為表格做驗(yàn)證,下面詳細(xì)內(nèi)容需要的小伙伴可以參考一下2022-03-03Python pygame實(shí)現(xiàn)圖像基本變換的示例詳解
pygame的transform中封裝了一些基礎(chǔ)的圖像處理函數(shù),這篇文章主要為大家介紹了pygame實(shí)現(xiàn)圖像的基本變換,例如縮放、旋轉(zhuǎn)、鏡像等,感興趣的小伙伴可以了解一下2023-11-11python里使用正則表達(dá)式的組嵌套實(shí)例詳解
這篇文章主要介紹了python里使用正則表達(dá)式的組嵌套實(shí)例詳解的相關(guān)資料,希望通過本文能幫助到大家,需要的朋友可以參考下2017-10-10Python趣味實(shí)例,實(shí)現(xiàn)一個(gè)簡單的抽獎(jiǎng)刮刮卡
這篇文章主要介紹了Python如何實(shí)現(xiàn)一個(gè)簡單的抽獎(jiǎng)刮刮卡,文中講解非常細(xì)致,代碼幫助大家更好的理解和學(xué)習(xí),感興趣的朋友可以了解下2020-07-07