Right now I am working on yolov8 project for object detection, during inference I realize that instead of using GPU it was using the CPU instead, therefore the slow inference speed which is around ~300ms
then i proceed with installation of pytorch and torchvision which then lead to error during torchvision installation which said :
" error: bad install directory or PYTHONPATH
You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read “.pth” files from. The installation directory you specified (via --install-dir, --prefix, or the disutils default setting) was :
/home/bizbot/.local/lib/python3.8/site-packages/
and your PYTHONPATH environment variable currently contains:
‘’ "
when i check my pytorch version using torch.version, it came out with ">> torch>version’2.0.0+nv23.05’ " and when im checking my torchvision using import torchvision, it shows error “/home/bizbot/ultralytics/venv/lib/python3.8/site-packages/torchvision/io/images.py:13: Userwarning: Failed to load image python extension: libcudart.so.10.2: cannot open shared object file:No such file or directory
warn(f"Failed to load image Python extension: {e}”) "
i’ve tried reinstalling, reboot, create another environment using another version, but the error still persist
it still runs on CPU, I reinstall pytorch v2.0.0 and torchvision v0.15.1 and the error still persist during torchvision installation, the bad install directory error,
is there any specific installation method to specific path or something?