当前位置:   article > 正文

pip安装sentence transformer失败原因解析_pip install sentence-transformers~=2.2.2

pip install sentence-transformers~=2.2.2

本来是很简单的一个命令解决的事情

pip install sentence-transformers
  • 1

结果报错

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ff139858250>: Failed to establish a new connection: [Errno -3] ????????')': /simple/sentence-transformers/
ERROR: Could not find a version that satisfies the requirement sentence-transformers (from versions: none)
ERROR: No matching distribution found for sentence-transformers
  • 1
  • 2
  • 3

之后尝试加镜像:

pip install sentence-transformers -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
  • 1

还是无法安装,关闭代理仍然未果……有说把pip的版本降到20.2,然而就在我卸载pip之后打算安装对应版本时,

apt-get install pip
  • 1

报错如下:

Ign:1 http://mirrors.163.com/ubuntu focal-security/main amd64 perl-modules-5.30 all 5.30.0-9ubuntu0.3
Err:2 http://mirrors.163.com/ubuntu focal/main amd64 libgdbm6 amd64 1.18.1-5
  Temporary failure resolving 'mirrors.163.com'
Err:3 http://mirrors.163.com/ubuntu focal/main amd64 libgdbm-compat4 amd64 1.18.1-5
  Temporary failure resolving 'mirrors.163.com'
Ign:4 http://mirrors.163.com/ubuntu focal-security/main amd64 libperl5.30 amd64 5.30.0-9ubuntu0.3
Ign:5 http://mirrors.163.com/ubuntu focal-security/main amd64 perl amd64 5.30.0-9ubuntu0.3
Ign:6 http://mirrors.163.com/ubuntu focal-security/main amd64 perl-base amd64 5.30.0-9ubuntu0.3
Err:7 http://mirrors.163.com/ubuntu focal/main amd64 init-system-helpers all 1.57
  Temporary failure resolving 'mirrors.163.com'
Err:8 http://mirrors.163.com/ubuntu focal/main amd64 liblocale-gettext-perl amd64 1.07-4
  Temporary failure resolving 'mirrors.163.com'
0% [Connecting to mirrors.163.com]
...
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14

最后走投无路,决定求助实验室网管,真相却是:

前天机房网线不够,有两台机器把外网的网线拔了用到其他地方了,网线没接……

概率极低的原因……

服务器要联网啊伙伴们!!!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/654895
推荐阅读
相关标签
  

闽ICP备14008679号