1

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.

3 Answers 3

4

you can try below code.

sudo pip3 uninstall pandas

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

Sign up to request clarification or add additional context in comments.

2 Comments

Sry then pls share screen of error when trying 'sudo pip3 install pandas'.
No problem. I solved it by installing pandas using conda.
0

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

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.