Some ideas on installing PyTorch
pip uninstall -y torch torchvision torchaudio
rm -rf ~/SOFTWARE/Conda/envs/libra/lib/python3.10/site-packages/torch*
rm -rf ~/SOFTWARE/Conda/envs/libra/lib/python3.10/site-packages/torchvision*
rm -rf ~/SOFTWARE/Conda/envs/libra/lib/python3.10/site-packages/torchaudio*
conda clean --all
This removes:
- Package caches
- Extracted package caches
- Index caches
- Lock files It may free up disk space and force conda to download fresh copies.
pip cache purge
This deletes all cached wheels and tarballs pip keeps, so the next pip install will fetch fresh builds.
conda install -c pytorch pytorch torchvision torchaudio cpuonly --force-reinstall
pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
python -c "import torch; print(torch.__version__)"