Skip to content

Commit

Permalink
Update install_cuda.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zackees authored Jan 8, 2024
1 parent e5b829d commit 7799595
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
# Delete the torch package if it doesn't have the cuda version
if args.force:
subprocess.run(["pip", "uninstall", "-y", "torch"], check=True)
subprocess.run(["pip", "uninstall", "-y", "torchvision"], check=True)
subprocess.run(["pip", "uninstall", "-y", "torch-directml"], check=True)
subprocess.run(["pip", "cache", "purge"], check=True)
else:
if TENSOR_CUDA_VERSION not in pip_list_stdout:
Expand Down

0 comments on commit 7799595

Please sign in to comment.