# Unable to install pytorch

**URL:** <https://forum.comfy.org/t/unable-to-install-pytorch/1906>\
**Category:** Mac\
**Tags:** issue, install\
**Created:** [March 14, 2025, 11:59am UTC](https://forum.comfy.org/t/unable-to-install-pytorch/1906 "2025-03-14T11:59:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ectxt](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@ectxt](https://forum.comfy.org/u/ectxt)\
**Post date:** [March 14, 2025, 11:59am UTC](https://forum.comfy.org/t/unable-to-install-pytorch/1906/1 "2025-03-14T11:59:58Z")

</div>

![image](https://canada1.discourse-cdn.com/flex009/uploads/comfyui1/original/1X/f78454ef1b0fd6f6258c67a7f62e84ad9519341f.png)

when i install comfyui on my M1 Mac computer it prompts an error message：/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install --pre torch torchvision torchaudio

–index-url [https://download.pytorch.org/whl/nightly/cpu](https://download.pytorch.org/whl/nightly/cpu)

error: Operation not supported (os error 45)

But when I try to run “pip install torch torchvision torchaudio --index-url [https://download.pytorch.org/whl/nightly/cpu](https://download.pytorch.org/whl/nightly/cpu)” It can be successfully installed

---

<div class="post-metadata">

**Author:** ![ectxt](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@ectxt](https://forum.comfy.org/u/ectxt)\
**Post date:** [March 15, 2025, 2:19am UTC](https://forum.comfy.org/t/unable-to-install-pytorch/1906/2 "2025-03-15T02:19:45Z")

</div>

Solved it. It’s a network CDN issue. Installed many times. When the network was good the next day, the installation was successful.Another note is that the installation directory cannot be selected on a portable hard drive
