ERROR 403: SSL is required的解决方案
Posted ssyfj
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 403: SSL is required的解决方案相关的知识,希望对你有一定的参考价值。
在尝试安装pip和setuptools时:出现错误
[[email protected] Downloads]# wget http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz --2018-06-12 19:54:20-- http://pypi.python.org/packages/source/s/setuptools/setuptools-2.0.tar.gz Resolving pypi.python.org... 151.101.72.223, 2a04:4e42:36::223 Connecting to pypi.python.org|151.101.72.223|:80... connected. HTTP request sent, awaiting response... 403 SSL is required 2018-06-12 19:54:20 ERROR 403: SSL is required.
原因是因为:
请求时,会跳转页面到https://页面,而wget并没有做301跳转,导致出现403错误。
正确的使用方法是:
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-0.6c11.tar.gz
注意:其中是需要用到--no-check-certificate。因为使用wget下载HTTPS开头的网址域名,会去要求证书,我们添加上
--no-check-certificate
不去检查证书
以上是关于ERROR 403: SSL is required的解决方案的主要内容,如果未能解决你的问题,请参考以下文章
nginx代理 wso2esb 出现 Error 403 - Forbidden
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not avail
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not 解决方法(
pip is configured with locations that require TLS/SSL问题
ubuntu error: SSL modules require the OpenSSL library.
搭建docker-python环境时提示WARNING: pip is configured with locations that require TLS/SSL, however the ssl