赞
踩
本来是很简单的一个命令解决的事情
pip install sentence-transformers
结果报错
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
之后尝试加镜像:
pip install sentence-transformers -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
还是无法安装,关闭代理仍然未果……有说把pip的版本降到20.2,然而就在我卸载pip之后打算安装对应版本时,
apt-get install pip
报错如下:
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]
...
最后走投无路,决定求助实验室网管,真相却是:
前天机房网线不够,有两台机器把外网的网线拔了用到其他地方了,网线没接……
概率极低的原因……
服务器要联网啊伙伴们!!!
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。