$ pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://download.pytorch.org/whl/cpu
ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
ERROR: No matching distribution found for torch
Anyone know how solve this problem?
When Run detect.py
UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at /root/rv/pt/pytorch-v2.1.1/torch/csrc/utils/tensor_numpy.cpp:84.)
Traceback (most recent call last):
File "detect.py", line 46, in <module>
from ultralytics.utils.plotting import Annotator, colors, save_one_box
ModuleNotFoundError: No module named 'ultralytics'
I had already install ultraytics:
sudo pip install ultralytics
ninja: build stopped: subcommand failed.
*** CMake build failed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cmake
Failed to build cmake
ERROR: Could not build wheels for cmake, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
also Intall numpy:
python3 -m pip install numpy
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: numpy in /home/user/.local/lib/python3.8/site-packages (1.24.4)