报错解决git clone --quiet https://github.com/facebookresearch/detectron2.git /tmp/pip-install-wdn8va

news/2024/10/23 7:28:05/

在服务器上安装langchain+chatglm-6b的环境包requirements时遇到报错: 

git clone --quiet https://github.com/facebookresearch/detectron2.git /tmp/pip-install-wdn8vazx/detectron2_09a41306c6a04abaa4ec763689775b94
  fatal: unable to access 'https://github.com/facebookresearch/detectron2.git/': Failed to connect to github.com port 443: Connection timed out
  error: subprocess-exited-with-error
 

解决办法: 

看错误信息detectron2的安装报错,具体看其实是网络连接问题,”Failed to connect to github.com port 443: Connection timed out“ ,单独安装detectron2,为其替换一个镜像即可。 

启智社区提供了关于这个包的国内镜像。 Learning-Develop-Union/detectron2 - detectron2 - OpenI - 启智AI开源社区提供普惠算力!

具体: 

在requirements 里将这行先注释掉。

pip3 install -r requirements.txt -i https://pypi.mirrors.ustc.edu.cn/simple/ && rm -rf pip3 cache dir

然后:

​
git clone https://openi.pcl.ac.cn/Learning-Develop-Union/detectron2.gitpython -m pip install -e detectron2
​

如果有继续提示关于protoc的错误“If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.” ,指定版本升级下即可。

pip install --upgrade protobuf==3.20.1


http://www.ppmy.cn/news/925662.html

相关文章

Jenkins基础: Quiet period的使用与设定

本文结合具体示例对于Jenkins的Quiet period特性进行解释和说明。 实际场景 代码的提交经常会有频度的波峰和波谷,在波峰阶段,提交接踵而至,造成这种现象发生主要有多个原因: 开发者有时会忘记提交代码或者文件,会导…

jenkins Pending quiet period关闭静默期

关掉静默期 Manage jenkins-> Configure System ->Quiet Period

关于GRUB中的rhgb以及quiet参数的含义

rhgb表示redhat graphics boot,就是会看到图片来代替启动过程中显示的文本信息,这些信息在启动后用dmesg也可以看到 quiet表示在启动过程中只有重要信息显示,类似硬件自检的消息不回显示 rhgb redhat graphical boot - This is a GU…

Emulate Docker CLI using podman. Create etccontainersnodocker to quiet msg. Error open procsel

问题描述:在Centos8系统中,使用docker run时,出现如下报错: Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. Error: open /proc/self/uid_map: no such file or directory 解决办法&#xff1…

Quiet NaN,Signaling NaN 和 Canonical NaN

首先,NaN值的定义是指数位全1,尾数位不全为0的浮点数。 对于二进制表示,IEEE 754-2008标准中只定义了Quiet NaN 和 Signaling NaN,其中Quiet NaN是指尾数最高位(也称quiet bit)为1的NaN值,Sign…

潇洒郎:gitpython 学习-解决Bad git executable, export GIT_PYTHON_REFRESH=quiet问题

错误如下: ImportError: Failed to initialize: Bad git executable. The git executable must be specified in one of the following ways:- be included in your $PATH- be set via $GIT_PYTHON_GIT_EXECUTABLE- explicitly set via git.refresh()All git commands will e…

barcode_quiet_zone

示例程序显示条形码受参数quiet_zone的影响。 该示例程序给出了如何为参数选择适当的值。 create_bar_code_model ([], [], BarCodeHandle) set_bar_code_param (BarCodeHandle, persistence, 1) PART I 读取条形码,无需空白区验证 QuietZone : false set_bar_…

Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. Error: open /proc/sel

问题描述:在Centos8系统中,使用docker run时,出现如下报错: Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg. Error: open /proc/self/uid_map: no such file or directory 解决办法&#xff1…