问题:
在安装redis-py的库的时候,出现以下错误
#Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/3b/f6/7a76333cf0b9251ecf49efff635015171843d9b977e4ffcf59f9c4428052/redis-2.10.6-py2.py3-none-any.whl (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749)'),))
解决方法:
依次输入以下命令
#pip3 install --trusted-host pypi.python.org --trusted-host py \
> --trusted-host files.pythonhosted.org \
> redis
安装成功。