2

I tried to upgrade pandas from 19.2 to 20.2

I did pip -install --upgrade pandas and it ran successfully. However, now when I try to import pandas I get:

    "Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']

I uninstall and re-install numpy with pip uninstall numpy and pip install numpy. But it seems like numpy is using a cashed version. I did install numpy MKL a while back....:

C:\Windows\System32>pip install numpy
Collecting numpy
  Using cached numpy-1.13.0-cp36-none-win32.whl
Installing collected packages: numpy
Successfully installed numpy-1.13.0

How do i install the "normal" version of numpy? As I believe this cached version is causing the issues

1
  • try upgrading, pip install --upgrade numpy Commented Jun 15, 2017 at 14:04

2 Answers 2

2

Go to this link and download the relevant numpy .whl file:

http://www.lfd.uci.edu/~gohlke/pythonlibs/

Then navigate to the directory from which it is downloaded to and run the pip install command for that file.

Hope this helps!

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

1 Comment

Didn't mean to delete this answer. Glad it helped :)
1

Do you use anaconda ? Try to run this script in cmd :

"conda install numpy"

Another solution might be to delete .pyc file your python project created. Python interpreter compiles source to byte code, which is stored in .pyc and byte code is afterwars executed by Pythons virtual machine.

3 Comments

I don't use anaconda. but I also looked for the .pyc files as in other posts. Couldn't find any. Any idea where some might be hiding?
solved the solution using the other poster's answer. But he deleted.
For python 2.7 - next to .py file, for python 3 - in pycache directory. more info docs.python.org/dev/whatsnew/…

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.