<input id="dlorj"></input>
      <acronym id="dlorj"><form id="dlorj"></form></acronym>

      扣丁學堂Python培訓簡述pip安裝py_zipkin時提示的SSL問題對應

      2019-08-05 17:04:53 269瀏覽

      Python的應用實踐zipkin,需要py_zipkin,使用pip進行安裝py_zipkin的時候出現問題, 根據stackoverflow的信息設定了pypi.org 和 files.pythonhosted.org解決了問題。本篇文章扣丁學堂Python培訓小編給讀者們分享一下pip安裝py_zipkin時提示的SSL問題對應,感興趣的小伙伴就隨小編來了解一下吧。


      扣丁學堂Python培訓簡述pip安裝py_zipkin時提示的SSL問題對應


      問題現象


      [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


      出現問題,需要安裝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"


      裝日志


      再次執行,安裝成功


      [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 ~]#

      想要了解更多關于Python開發方面內容的小伙伴,請關注扣丁學堂Python培訓官網、微信等平臺,扣丁學堂IT職業在線學習教育有專業的Python講師為您指導,此外扣丁學堂老師精心推出的Python視頻教程定能讓你快速掌握Python從入門到精通開發實戰技能。扣丁學堂Python技術交流群:279521237。


      扣丁學堂微信公眾號                          Python全棧開發爬蟲人工智能機器學習數據分析免費公開課直播間


            【關注微信公眾號獲取更多學習資料】         【掃碼進入Python全棧開發免費公開課】



      查看更多關于"Python開發資訊"的相關文章>

      標簽: Python培訓 Python視頻教程 Python在線視頻 Python學習視頻 Python培訓班
      微信
      微博
      15311698296

      全國免費咨詢熱線

      郵箱:codingke@1000phone.com

      官方群:148715490

      北京千鋒互聯科技有限公司版權所有   北京市海淀區寶盛北里西區28號天豐利商場4層
      京ICP備12003911號-6   Copyright ? 2013 - 2019
      返回頂部 返回頂部
      500福利导航第一福利导