• <i id='4IELH'><tr id='4IELH'><dt id='4IELH'><q id='4IELH'><span id='4IELH'><b id='4IELH'><form id='4IELH'><ins id='4IELH'></ins><ul id='4IELH'></ul><sub id='4IELH'></sub></form><legend id='4IELH'></legend><bdo id='4IELH'><pre id='4IELH'><center id='4IELH'></center></pre></bdo></b><th id='4IELH'></th></span></q></dt></tr></i><div id='4IELH'><tfoot id='4IELH'></tfoot><dl id='4IELH'><fieldset id='4IELH'></fieldset></dl></div>

      <legend id='4IELH'><style id='4IELH'><dir id='4IELH'><q id='4IELH'></q></dir></style></legend>
        <bdo id='4IELH'></bdo><ul id='4IELH'></ul>

    1. <small id='4IELH'></small><noframes id='4IELH'>

      1. <tfoot id='4IELH'></tfoot>

        Pip 安装失败:需要 SSL

        Pip install fails: SSL required(Pip 安装失败:需要 SSL)
          <tfoot id='D2Q4l'></tfoot>
        • <small id='D2Q4l'></small><noframes id='D2Q4l'>

            <tbody id='D2Q4l'></tbody>

            <bdo id='D2Q4l'></bdo><ul id='D2Q4l'></ul>

                  <legend id='D2Q4l'><style id='D2Q4l'><dir id='D2Q4l'><q id='D2Q4l'></q></dir></style></legend>
                  <i id='D2Q4l'><tr id='D2Q4l'><dt id='D2Q4l'><q id='D2Q4l'><span id='D2Q4l'><b id='D2Q4l'><form id='D2Q4l'><ins id='D2Q4l'></ins><ul id='D2Q4l'></ul><sub id='D2Q4l'></sub></form><legend id='D2Q4l'></legend><bdo id='D2Q4l'><pre id='D2Q4l'><center id='D2Q4l'></center></pre></bdo></b><th id='D2Q4l'></th></span></q></dt></tr></i><div id='D2Q4l'><tfoot id='D2Q4l'></tfoot><dl id='D2Q4l'><fieldset id='D2Q4l'></fieldset></dl></div>
                  本文介绍了Pip 安装失败:需要 SSL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  Collecting rsa==3.1.1 (from -r /racetrack/.requirements.txt (line 41))
                  eval (python -m virtualfish)
                    Downloading rsa-3.1.1.tar.gz
                      Complete output from command python setup.py egg_info:
                      Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.10.tar.gz
                      Traceback (most recent call last):          
                        File "/usr/lib/python2.7/urllib2.py", line 558, in http_error_default
                          raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
                      urllib2.HTTPError: HTTP Error 403: SSL is required
                  

                  推荐答案

                  解决方案:升级到最新版本的库.

                  一切从这里开始,突然(2017 年 10 月)Distutils 团队决定撤销对非 https 请求的支持,而不用担心破坏许多 python 库早期版本的向后兼容性.有点不专业,但嘿,这是 Python 世界.

                  It all starts here, suddenly(on Oct-2017) the Distutils team decided to revoke support for non-https requests without worrying about breaking the backward compatibility of earlier versions of numerous python libraries. Bit unprofessional, but hey it's Python world.

                  所以这里是修复,只需在任何库(nltk==3.2.5 等)

                  So here is the fix, Simply move on to the latest version of the library (rsa==3.4.2 in my case) on whatever library (nltk==3.2.5 etc)

                  替代解决方案:分叉(或本地复制)repo 的版本 &修改http url为https

                  Alternate Solution: Fork(or locally copy) the version of repo & modify the http url into https

                  尽管如此,请注意您是否在维护另一个项目的同时这样做,因为您正在升级的依赖项可能与作者想要的原始库不兼容,例如在我的上下文中使用了 rsa在另一个库下作为依赖项.因此解决方案是升级父库,以便自动处理此问题.

                  Nonetheless, watch out if you are doing this while maintaining another project since the dependency you are upgrading might not be compatible with the original library the author had intended, for example in my context rsa was used under another library as a dependency. Thus the solution was to upgrade the parent library so that this issue is automatically taken care.

                  这篇关于Pip 安装失败:需要 SSL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  env: python: No such file or directory(env: python: 没有这样的文件或目录)
                  How to evaluate environment variables into a string in Python?(如何在 Python 中将环境变量评估为字符串?)
                  Python - temporarily modify the current process#39;s environment(Python - 临时修改当前进程的环境)
                  Change current process environment#39;s LD_LIBRARY_PATH(更改当前进程环境的 LD_LIBRARY_PATH)
                  Reading and writing environment variables in Python?(在 Python 中读写环境变量?)
                  When to use sys.path.append and when modifying %PYTHONPATH% is enough(何时使用 sys.path.append 以及何时修改 %PYTHONPATH% 就足够了)

                  1. <small id='6pm8V'></small><noframes id='6pm8V'>

                    <i id='6pm8V'><tr id='6pm8V'><dt id='6pm8V'><q id='6pm8V'><span id='6pm8V'><b id='6pm8V'><form id='6pm8V'><ins id='6pm8V'></ins><ul id='6pm8V'></ul><sub id='6pm8V'></sub></form><legend id='6pm8V'></legend><bdo id='6pm8V'><pre id='6pm8V'><center id='6pm8V'></center></pre></bdo></b><th id='6pm8V'></th></span></q></dt></tr></i><div id='6pm8V'><tfoot id='6pm8V'></tfoot><dl id='6pm8V'><fieldset id='6pm8V'></fieldset></dl></div>

                        <bdo id='6pm8V'></bdo><ul id='6pm8V'></ul>
                          <tbody id='6pm8V'></tbody>

                            <tfoot id='6pm8V'></tfoot><legend id='6pm8V'><style id='6pm8V'><dir id='6pm8V'><q id='6pm8V'></q></dir></style></legend>