# YOLO installation is failing

**URL:** <https://community.ultralytics.com/t/yolo-installation-is-failing/1655>\
**Category:** Discussion\
**Tags:** support\
**Created:** [November 21, 2025, 8:40pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655 "2025-11-21T20:40:54Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alfredo\_Jones](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/alfredo_jones/32/697_2.png) [@Alfredo\_Jones](https://community.ultralytics.com/u/Alfredo_Jones)\
**Post date:** [November 21, 2025, 8:40pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/1 "2025-11-21T20:40:54Z")

</div>

I’m trying to install YOLO package and It’s failing.

I’m tried three different commands:

pip install ultralytics

pip install -U ultralytics

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

All three fail at “cp39-manylinux\_2\_28\_x86\_64.”

Do you have any ideas on what might be causing this or how to fix it?

Thanks,

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [November 21, 2025, 10:46pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/2 "2025-11-21T22:46:39Z")

</div>

What’s the full log?

---

<div class="post-metadata">

**Author:** ![Alfredo\_Jones](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/alfredo_jones/32/697_2.png) [@Alfredo\_Jones](https://community.ultralytics.com/u/Alfredo_Jones)\
**Post date:** [November 22, 2025, 9:08pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/3 "2025-11-22T21:08:57Z")

</div>

[ec2-user@ip-172-31-64-237 ~] sudo pip install ultralytics  
Collecting ultralytics  
Using cached ultralytics-8.3.230-py3-none-any.whl (1.1 MB)  
Collecting torch\>=1.8.0  
Downloading torch-2.8.0-cp39-cp39-manylinux\_2\_28\_x86\_64.whl (888.0 MB)  
|████████████▌ | 346.4 MB 48 bytes/s eta 130 days, 7:42:58 Killed  
[ec2-user@ip-172-31-64-237 ~]

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [November 22, 2025, 10:41pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/4 "2025-11-22T22:41:14Z")

</div>

You shouldn’t use `sudo` to install Python packages

How much RAM do you have?

You can try `pip install ultralytics --no-cache-dir`

---

<div class="post-metadata">

**Author:** ![BurhanQ](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/burhanq/32/7_2.png) [@BurhanQ](https://community.ultralytics.com/u/BurhanQ)\
**Post date:** [November 24, 2025, 4:36pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/5 "2025-11-24T16:36:52Z")

</div>

> [@Alfredo\_Jones](#):
>
> 346.4 MB 48 bytes/s eta 130 days, 7:42:58 Killed

looks like the download for PyTorch is taking a _very_ long time and might be timing out. Anyway you can connect to a faster network or try downloading when there’s less use of the network by others?

---

<div class="post-metadata">

**Author:** ![Alfredo\_Jones](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/alfredo_jones/32/697_2.png) [@Alfredo\_Jones](https://community.ultralytics.com/u/Alfredo_Jones)\
**Post date:** [November 24, 2025, 5:57pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/6 "2025-11-24T17:57:59Z")

</div>

Hi, thank for the answer. I added the --no-cache-dir param and set $TMDIR env variable for a bigger filesystem. But I started to receiving the “No space left” message. Do yo know how much space is required?

---

<div class="post-metadata">

**Author:** ![Alfredo\_Jones](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/alfredo_jones/32/697_2.png) [@Alfredo\_Jones](https://community.ultralytics.com/u/Alfredo_Jones)\
**Post date:** [November 24, 2025, 6:01pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/7 "2025-11-24T18:01:42Z")

</div>

I’m using aws, so network shouldn’t be a problem. May be is a cache space issue as mentioned by Toxite.

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [November 24, 2025, 11:58pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/8 "2025-11-24T23:58:08Z")

</div>

It depends on whether you are using GPU or not. GPU would require PyTorch with CUDA which is larger than CPU only PyTorch.

Can you provide the output after running this command in terminal: `yolo checks`?

---

<div class="post-metadata">

**Author:** ![Alfredo\_Jones](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/alfredo_jones/32/697_2.png) [@Alfredo\_Jones](https://community.ultralytics.com/u/Alfredo_Jones)\
**Post date:** [November 25, 2025, 2:02pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/9 "2025-11-25T14:02:48Z")

</div>

Thanks for getting back to me. I don’t have YOLO installed yet because the installation keeps failing. I’ll try freeing up more space and see if that fixes it.

---

<div class="post-metadata">

**Author:** ![Alfredo\_Jones](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/alfredo_jones/32/697_2.png) [@Alfredo\_Jones](https://community.ultralytics.com/u/Alfredo_Jones)\
**Post date:** [November 25, 2025, 6:18pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/10 "2025-11-25T18:18:18Z")

</div>

Hi;  
I added 80 Gb space and I run again pip command:

sudo pip install --prefix /disk1/ultralytics ultralytics --no-cache-dir --cache-dir /disk/tmp &

and I got another interesting error message:

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please updat e the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.  
torch\>=1.8.0 from [https://files.pythonhosted.org/packages/fd/dd/1630cb51b10d3d2e97db95e5a84c32def81fc26b005bce6fc880b0e6db81](https://files.pythonhosted.org/packages/fd/dd/1630cb51b10d3d2e97db95e5a84c32def81fc26b005bce6fc880b0e6db81) /torch-2.8.0-cp39-cp39-manylinux\_2\_28\_x86\_64.whl#sha256=06fcee8000e5c62a9f3e52a688b9c5abb7c6228d0e56e3452983416025c41381 (from u ltralytics):  
Expected sha256 06fcee8000e5c62a9f3e52a688b9c5abb7c6228d0e56e3452983416025c41381  
Got 5596fd98ed1426b0258fa81712aaf6ac0268f5f861911b3f5e9c6b403f5e9e97

I

Please find the complete log below:

[ec2-user@ip-172-31-68-175 disk] sudo pip install --prefix /disk1/ultralytics ultralytics --no-cache-dir --cache-dir /disk/tmp & [1] 172368 [ec2-user@ip-172-31-68-175 disk] Collecting ultralytics  
Downloading ultralytics-8.3.232-py3-none-any.whl (1.1 MB)  
|████████████████████████████████| 1.1 MB 16.0 MB/s  
Collecting pillow\>=7.1.2  
Downloading pillow-11.3.0-cp39-cp39-manylinux\_2\_27\_x86\_64.manylinux\_2\_28\_x86\_64.whl (6.6 MB)  
|████████████████████████████████| 6.6 MB 70.1 MB/s  
Collecting psutil\>=5.8.0  
Downloading psutil-7.1.3-cp36-abi3-manylinux2010\_x86\_64.manylinux\_2\_12\_x86\_64.manylinux\_2\_28\_x86\_64.whl (263 kB)  
|████████████████████████████████| 263 kB 73.6 MB/s  
Collecting scipy\>=1.4.1  
Downloading scipy-1.13.1-cp39-cp39-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (38.6 MB)  
|████████████████████████████████| 38.6 MB 118.0 MB/s  
Collecting ultralytics-thop\>=2.0.18  
Downloading ultralytics\_thop-2.0.18-py3-none-any.whl (28 kB)  
Collecting opencv-python\>=4.6.0  
Downloading opencv\_python-4.12.0.88-cp37-abi3-manylinux2014\_x86\_64.manylinux\_2\_17\_x86\_64.whl (67.0 MB)  
|████████████████████████████████| 67.0 MB 30.6 MB/s  
Collecting matplotlib\>=3.3.0  
Downloading matplotlib-3.9.4-cp39-cp39-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (8.3 MB)  
|████████████████████████████████| 8.3 MB 53.1 MB/s  
Requirement already satisfied: requests\>=2.23.0 in /usr/lib/python3.9/site-packages (from ultralytics) (2.25.1)  
Collecting numpy\>=1.23.0  
Downloading numpy-2.0.2-cp39-cp39-manylinux\_2\_17\_x86\_64.manylinux2014\_x86\_64.whl (19.5 MB)  
|████████████████████████████████| 19.5 MB 56.5 MB/s  
Collecting torchvision\>=0.9.0  
Downloading torchvision-0.23.0-cp39-cp39-manylinux\_2\_28\_x86\_64.whl (8.6 MB)  
|████████████████████████████████| 8.6 MB 56.0 MB/s  
Collecting polars\>=0.20.0  
Downloading polars-1.35.2-py3-none-any.whl (783 kB)  
|████████████████████████████████| 783 kB 73.1 MB/s  
Requirement already satisfied: pyyaml\>=5.3.1 in /usr/lib64/python3.9/site-packages (from ultralytics) (5.4.1)  
Collecting torch\>=1.8.0  
Downloading torch-2.8.0-cp39-cp39-manylinux\_2\_28\_x86\_64.whl (888.0 MB)  
|████████▍ | 231.5 MB 856 bytes/s eta 8 days, 20:56:19  
ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please updat e the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.  
torch\>=1.8.0 from [https://files.pythonhosted.org/packages/fd/dd/1630cb51b10d3d2e97db95e5a84c32def81fc26b005bce6fc880b0e6db81](https://files.pythonhosted.org/packages/fd/dd/1630cb51b10d3d2e97db95e5a84c32def81fc26b005bce6fc880b0e6db81) /torch-2.8.0-cp39-cp39-manylinux\_2\_28\_x86\_64.whl#sha256=06fcee8000e5c62a9f3e52a688b9c5abb7c6228d0e56e3452983416025c41381 (from u ltralytics):  
Expected sha256 06fcee8000e5c62a9f3e52a688b9c5abb7c6228d0e56e3452983416025c41381  
Got 5596fd98ed1426b0258fa81712aaf6ac0268f5f861911b3f5e9c6b403f5e9e97

Any ideas on how can I fix it?

---

<div class="post-metadata">

**Author:** ![Toxite](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/toxite/32/123_2.png) [@Toxite](https://community.ultralytics.com/u/Toxite)\
**Post date:** [November 26, 2025, 5:36am UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/11 "2025-11-26T05:36:17Z")

</div>

You should probably create an environment with newer Python, like Python 3.12. Choose a Deep Learning AMI with PyTorch for the EC2 instance:

> **[What is AWS Deep Learning AMIs? - AWS Deep Learning AMIs](https://docs.aws.amazon.com/dlami/latest/devguide/what-is-dlami.html)**
>
> Launch an instance with AWS Deep Learning AMIs (DLAMI), machine images for deep learning with NVIDIA CUDA and NVIDIA cuDNN and the latest releases of the most popular deep learning frameworks.

---

<div class="post-metadata">

**Author:** ![Henk\_van\_Logten](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/henk_van_logten/32/1548_2.png) [@Henk\_van\_Logten](https://community.ultralytics.com/u/Henk_van_Logten)\
**Post date:** [June 7, 2026, 1:47pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/12 "2026-06-07T13:47:10Z")

</div>

Perhaps a problem in Trixie. Used fresh installation with Bookworm 64bits. All problems solved.

---

<div class="post-metadata">

**Author:** ![pderrenger](https://sea1.discourse-cdn.com/flex001/user_avatar/community.ultralytics.com/pderrenger/32/73_2.png) [@pderrenger](https://community.ultralytics.com/u/pderrenger)\
**Post date:** [June 8, 2026, 2:37pm UTC](https://community.ultralytics.com/t/yolo-installation-is-failing/1655/13 "2026-06-08T14:37:12Z")

</div>

Thanks for sharing that — it lines up with the earlier `torch` hash mismatch and stalled wheel download. That error is usually a corrupted/incomplete PyTorch download or an OS/package-mirror issue, not an Ultralytics YOLO bug itself.

For anyone hitting the same problem, a clean `Bookworm` install with Python `3.11` or `3.12`, a fresh `venv`/Conda env, and installing **without** `sudo` is the safest path. The [Ultralytics install guide](https://docs.ultralytics.com/quickstart) and this [Conda quickstart](https://docs.ultralytics.com/guides/conda-quickstart) are good references if you want the most reliable setup on AWS.

A minimal clean install looks like:

```bash
python3.11 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install -U ultralytics

```

If Alfredo is still blocked, I’d try that on Bookworm or use an AWS DLAMI as suggested above.
