• pip安装sentence transformer失败原因解析


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

    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

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

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

    概率极低的原因……

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

  • 相关阅读:
    Tomcat10+Spring6报错
    vite — 超快且方便的编译工具
    关于vcruntime140.dll丢失如何修复,电脑多种修复vcruntime140.dll丢失方法
    Spring解决循环依赖
    Springboot整合taos时序数据库TDengine
    STL——vector与迭代器
    LeetCode中等题之旋转图像
    ERROR 2003 (HY000) Can‘t connect to MySQL server on ‘localhost3306‘ (10061)解决办法
    (未完)【技术美术知识储备】纹理基础1.0(结合RTR4)
    为 Lambda 语法增加序运算能力
  • 原文地址:https://blog.csdn.net/qq_36332660/article/details/127913794