Skip to content

compchem-cybertraining/Tutorials_PyTorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tutorials_PyTorch

Some ideas on installing PyTorch

1. If things didn't work quite well - cleanup

1. Uninstall torch stuff:

pip uninstall -y torch torchvision torchaudio

2. Remove the remnants of files and folders, e.g.:

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*

3. Clean Conda cache:

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.

4. Clean pip cache:

pip cache purge

This deletes all cached wheels and tarballs pip keeps, so the next pip install will fetch fresh builds.

2. Once you are fresh - reinstall

1. With Conda (CPU only):

conda install -c pytorch pytorch torchvision torchaudio cpuonly --force-reinstall

2. With Pip (CPU only):

pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu

3. Test installation:

python -c "import torch; print(torch.__version__)"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published