close

How can l uninstall PyTorch?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How can l uninstall PyTorch in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How can l uninstall PyTorch?

  1. How can l uninstall PyTorch?

    Please note that this will remove the specified packages (here: torch and torchvision) and any other package which depends on torch and torchvision, if there're any.

  2. uninstall PyTorch

    Please note that this will remove the specified packages (here: torch and torchvision) and any other package which depends on torch and torchvision, if there're any.

Method 1

From the anaconda docs, you can uninstall with conda uninstall

Try

conda uninstall pytorch torchvision cuda80 -c soumith

Alternatively, the pytorch docs suggest

conda uninstall pytorch
pip uninstall torch
pip uninstall torch # run this command twice

Method 2

You can also use

conda remove torch torchvision

Please note that this will remove the specified packages (here: torch and torchvision) and any other package which depends on torch and torchvision, if there’re any.

P.S. conda uninstall is an alias to conda remove.

Summery

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read