Uninstall dgl completely

Hi,
I want to uninstall DGL completely and I used pip uninstall dgl but the problem is that I can import dgl in the python after that.
I can’t remember how I install it. it would be very nice if you help me to solve this problem

Thanks

Try the following in a python repl:

>>> import dgl
>>> dgl.__path__

Take a look at the path and uninstall it correspondingly. For example, it might be your pip local path or conda path or path set by PYTHON_PATH variable.

Thanks a lot for your help it’s working.
But just to check so I should go to this path and delete dgl folder or go to this directory and then run pip uninstall dgl and then install it again.

is it true for installing the latest version of DGL?

Since I face a downloading problem data and one of the author told me try to install the latest version of the DGL I did what I mentioned and I still get the same error. I’m wondering if the procedure is all I should do or I skip a step?

It’s better to first figure out which package manager makes it visible and use that package manager to uninstall it. I would not delete the folder directly.

To install the latest DGL:

Using anaconda

conda install -c dglteam dgl           # cpu version
conda install -c dglteam dgl-cuda9.0   # CUDA 9.0
conda install -c dglteam dgl-cuda9.2   # CUDA 9.2
conda install -c dglteam dgl-cuda10.0  # CUDA 10.0

Using pip

pip install dgl       # cpu version
pip install dgl-cu90  # CUDA 9.0
pip install dgl-cu92  # CUDA 9.2
pip install dgl-cu100 # CUDA 10.0

Specify --upgrade option in the end to override existing version. Note that if you’ve installed, for example, dgl-cu90, you need to use the same package name when uninstalling it. To check the installed version, use:

python -c 'import dgl; print(dgl.__version__)'

Thanks for your reply. but I have a question what do you mean by package manager?
I know how to install it but I’m not sure for the uninstalling procedure. In my previous message, I wrote installing instead of uninstalling. Sorry about that.
So I repeat my question: But just to check so I should go to this path and delete dgl folder or go to this directory and then run pip uninstall dgl and then install it again.

is it true for uninstalling the latest version of DGL?
and then for installing I will use related commands