Unable to install pytorch

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

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” It can be successfully installed

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