使用pip安装redis时遇见的错误 ERROR: Could not install packages due to an EnvironmentError: HTTPSCo

时间:2024-04-07 10:03:12

使用pip安装redis时遇见的错误
一、错误提示:
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnection(host=‘files.pythonhosted.org’, port=443): Max retries exceeded with url:
使用pip安装redis时遇见的错误 ERROR: Could not install packages due to an EnvironmentError: HTTPSCo
Try to run this command from the system terminal. Make sure that you use the correct version of ‘pip’ installed for your Python interpreter located at ‘D:\Python\python.exe’.

二、解决:
升级一下pip版本就可以了:
在Pycharm中---->Ctrl+Alt+S---->Python Interpreter----->双击pip----->左下角Install Package