如何解决os_testr安装失败的问题?-灵析社区

Fronttend

## Ubuntu22.04安装os_testr失败 Ubuntu22.04安装os_testr失败,报错 ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/18/b8/9e4ee82fda62577ec9b23ad6b4fc79fceb5d31cc72a2f5f95d84959cf385/os_testr-3.0.0-py3-none-any.whl (Caused by SSLError(SSLError("bad handshake: SysCallError(-1, 'Unexpected EOF')"))) 尝试过1、升级pip,2、手工pip install仍失败;

阅读量:152

点赞量:0

问AI
切换镜像源试试,看着像是官方的访问不了。。。 «1. 创建一个 ".pip" 文件夹在你的 "~" 目录下» mkdir ~/.pip «2. 写入以下配置信息到 "pip.conf" 文件中» cd ~/.pip vim pip.conf # 然后把这些内容拷贝进去 [global] index.url = http://mirrors.aliyun.com/pypi/simple [install] trusted-host = mirrors.aliyun.com 最后再 ":wq" 退出保存该文件。 你再做尝试安装。