Insight
Insight

Reputation: 222

can't install pandas (ERROR: Cannot uninstall 'numpy')

I'm on macOS 10.15 Beta, running a .py script that requires pandas, which is not installed.

When I run sudo python -m pip install --upgrade pandas I receive:

ERROR: Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

If I run sudo pip install pandas I receive the same error.

Help appreciated.

Upvotes: 1

Views: 1408

Answers (3)

Insight
Insight

Reputation: 222

I tried the solutions presented in the other answers, but what worked for me was installing pandas using conda.

Upvotes: 0

MKP
MKP

Reputation: 69

you can try below code.

sudo pip3 uninstall pandas

If still you are not able to uninstall pls share screenshot of error.

Upvotes: 4

Insight
Insight

Reputation: 222

I found an alternative method to install pandas, by installing minicondas, and running conda install pandas.

Upvotes: 0

Related Questions