pip install报错HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read

142 阅读1分钟

安装pdf2docx的时候报错了

image.png

报错内容是连接超时, 也就是连接到官方源地址的网络不行,换国内镜像源地址呗

  • 官方:https://pypi.org/
  • 清华:https://pypi.tuna.tsinghua.edu.cn/simple/
  • 阿里云:https://mirrors.aliyun.com/pypi/simple/
  • 豆瓣:https://pypi.douban.com/simple/
  • 北京外国语大学 https://mirrors.bfsu.edu.cn/pypi/web/simple/

我换了清华的镜像源地址就行了

pip install pdf2docx -i https://pypi.tuna.tsinghua.edu.cn/simple

image.png