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 9001cea commit b12631f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions install_cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,7 @@

# Delete the torch package if it doesn't have the cuda version
if args.force or True: # always do this path now.
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", "uninstall", "-y", "torch", "torchtext", "torchdata", "torchaudio", "torchvision", "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 b12631f

Please sign in to comment.