遇到问题:error: subprocess-exited-with-error

编译遇到问题:

安装 ultralytics 时:

	pip install git+https://github.com/ultralytics/ultralytics.git

报错:

  fatal: unable to access 'https://github.com/ultralytics/ultralytics.git/': GnuTLS recv error (-110): The TLS connection was non-properly terminated.
  warning: Clone succeeded, but checkout failed.
  You can inspect what was checked out with 'git status'
  and retry with 'git restore --source=HEAD :/'

  error: subprocess-exited-with-error
  
  × git clone --filter=blob:none --quiet https://github.com/ultralytics/ultralytics.git /tmp/pip-req-build-ssewwmk_ did not run successfully.
  │ exit code: 128
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

参考链接:pip安装软件包报错: error subprocess-exited-with-error问题记录

在执行 pip install --upgrade setuptools 报错

ERROR: Exception:
Traceback (most recent call last):
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 438, in _error_catcher
    yield
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 561, in read
    data = self._fp_read(amt) if not fp_closed else b""
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/site-packages/pip/_vendor/urllib3/response.py", line 527, in _fp_read
    return self._fp.read(amt) if amt is not None else self._fp.read()
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/site-packages/pip/_vendor/cachecontrol/filewrapper.py", line 98, in read
    data: bytes = self.__fp.read(amt)
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/http/client.py", line 466, in read
    s = self.fp.read(amt)
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/socket.py", line 705, in readinto
    return self._sock.recv_into(b)
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/ssl.py", line 1307, in recv_into
    return self.read(nbytes, buffer)
  File "/home/be/anaconda3/envs/YOLOv8/lib/python3.10/ssl.py", line 1163, in read
    return self._sslobj.read(len, buffer)
TimeoutError: The read operation timed out

During handling of the above exception, another exception occurred:

别慌,再运行一次命令。多试几次就好了。

结果问题还是没有解决:

然后突发奇想,换了一个命令:

	pip3 install git+https://github.com/ultralytics/ultralytics.git

之后就是很久的下载过程。。。
成功

Downloading networkx-3.2.1-py3-none-any.whl (1.6 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.6/1.6 MB 156.9 kB/s eta 0:00:00
Using cached typing_extensions-4.8.0-py3-none-any.whl (31 kB)
Downloading MarkupSafe-2.1.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (26 kB)
Building wheels for collected packages: ultralytics, psutil
  Building wheel for ultralytics (setup.py) ... done
  Created wheel for ultralytics: filename=ultralytics-8.0.222-py3-none-any.whl size=655931 sha256=2a7b9f3fc79f802644a04848b8dfa157ff64d876af528db60c69a5cfac158741
  Stored in directory: /tmp/pip-ephem-wheel-cache-9852jke6/wheels/45/25/b9/9f1e3857f58c296e7854ef871c3f5a15d519cc6c679848df8e
  Building wheel for psutil (pyproject.toml) ... done
  Created wheel for psutil: filename=psutil-5.9.6-cp310-abi3-linux_aarch64.whl size=239208 sha256=5e599e6a8663baeb23d1fbe49ee9bd7906318497ebc57ce66300e17a88f42ab8
  Stored in directory: /home/be/.cache/pip/wheels/5e/96/5c/772c1e1c9ec27f726ee70b6681e2058fcfbf9e84c76df62027
Successfully built ultralytics psutil
Installing collected packages: pytz, py-cpuinfo, mpmath, urllib3, tzdata, typing-extensions, tqdm, sympy, six, pyyaml, pyparsing, psutil, pillow, packaging, numpy, networkx, MarkupSafe, kiwisolver, idna, fsspec, fonttools, filelock, cycler, charset-normalizer, certifi, scipy, requests, python-dateutil, opencv-python, jinja2, contourpy, torch, pandas, matplotlib, torchvision, thop, seaborn, ultralytics
Successfully installed MarkupSafe-2.1.3 certifi-2023.11.17 charset-normalizer-3.3.2 contourpy-1.2.0 cycler-0.12.1 filelock-3.13.1 fonttools-4.46.0 fsspec-2023.12.0 idna-3.6 jinja2-3.1.2 kiwisolver-1.4.5 matplotlib-3.8.2 mpmath-1.3.0 networkx-3.2.1 numpy-1.26.2 opencv-python-4.8.1.78 packaging-23.2 pandas-2.1.3 pillow-10.1.0 psutil-5.9.6 py-cpuinfo-9.0.0 pyparsing-3.1.1 python-dateutil-2.8.2 pytz-2023.3.post1 pyyaml-6.0.1 requests-2.31.0 scipy-1.11.4 seaborn-0.13.0 six-1.16.0 sympy-1.12 thop-0.1.1.post2209072238 torch-2.1.1 torchvision-0.16.1 tqdm-4.66.1 typing-extensions-4.8.0 tzdata-2023.3 ultralytics-8.0.222 urllib3-2.1.0

  • 11
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值