The location of the folder is given in the error: /opt/anaconda3/lib/python3.8/site-packages
.
I would assume you did not see the directory because macOS hides root directories (and dotfiles) by default in Finder. Here is a guide to show hidden files on macOS.
However, we can go to the directory and delete the directory in the Terminal.
First, you can go to the directory with
cd /opt/anaconda3/lib/python3.8/site-packages
Let us breakdown what this command does:
classification |
part of command |
explanation |
built-in program |
cd |
The Change Directory command. It takes one argument, a file(you could call it a directory, but technically everything in Unix is a file) you want to go to. |
command line argument |
/opt/anaconda3/lib/python3.8/site-packages |
This is the directory you are supplying to cd |
Second, you can remove the directory with
rm --recursive --force /opt/anaconda3/lib/python3.8/site-packages
Let us also break down what this command does:
classification |
part of command |
explanation |
program |
rm |
The remove command removes files from your file system. It takes in the file(s) you want removed. |
flag |
--recursive |
This flag tells rm to remove the contents of a directory provided. |
flag |
--force |
This flag makes sure that rm does not prompt while we are removing the directory |
command line argument |
/opt/anaconda3/lib/python3.8/site-packages |
This is the directory rm is going to delete |
I highly suggest you read the Manual pages for these two this program. See man rm
(cd
does not have a Man page).
The shell is a very powerful tool once you master it. Here is a tutorial that might be of use to you.