Slartibartfast
Slartibartfast

Reputation: 1190

Removing package in Anaconda

I have installed a package using anaconda and pip and then removed the package using pip. When i uninstalled using pip in cmd it says uninstalled. So now i have too remove this package from anaconda. enter image description here

As you can see from the picture above yfinance shows it is installed. However when i try to run the command: conda remove yfinance it says package not found:

enter image description here

How can i remove this package? Because i need to install a fork of this package.

enter image description here

--Edit:-- I tried to install this package but i am getting an error: enter image description here

Thus i cannot uninstall it.

Upvotes: 2

Views: 6371

Answers (1)

MacOS
MacOS

Reputation: 1159

You can try to install the package anaconda, and then to try uninstall again.

conda install yfinance

conda remove yfinance

I hope this helps.

EDIT

You can also delete the directory of the package, as you pointed out. But make sure you are in the correct one! This seems to be in your root directory of anaconda, as you use the base environment. In my case, this would be

/home/user/anaconda3

You may want to use a search tool to find the correct folder. This might be

/home/user/anaconda3/lib/python3.7/site-packages/yfinance

Upvotes: 4

Related Questions