-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Unable to import pandas #7517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
pip will sometimes install/upgrade dependencies in an arbitrary order. This error message indicates that pandas was built against an older version of numpy. If you reinstall pandas it should go away. |
I did try uninstalling pandas and reinstalling it. But I get the same error again. Compiling pandas from source seems to work though. Only pip installation produces the above error for me. |
I posted an answer on what works for me in the first question (installing from source). But for some reason, I cannot get to install it using pip. |
@phani-vadrevu Following your instructions, I can import pandas finally.
|
+1 works for me! Thank you! |
I can confirm that pip is installing numpy 1.6.2 and that using easy_install to upgrade bumpy to 1.9.0 makes the pip pandas installation work properly. I'm not sure why pip isn't installing the most recent version of numpy, but the easy_install workaround works, as does installing pandas from source (the pip install doesn't actually seem to work against numpy 1.6.2). |
Same error with both numpy and pandas being latest versions: $ pip freeze | egrep 'numpy|pandas' |
@Henry2012 @nspies @maxiaojun @phani-vadrevu couple of points
that said, i'm happy to help someone set up an environment using any of the above tools, but trying to track down the reason as to how/why/when you clobbered something is an exercise in futility. FWIW, I'm also running 3 versions of Windows, Arch Linux, and Mac OS X 10.9.5 and I've yet to run into this problem using any of the above mentioned tools. Also, if you ever need to work on a machine that's not your own and you don't have |
Right now i had the same issue. If you are using Virtual Env and you install pandas, you have to deactivate the env. After you activate it again it should work. 🎉 |
I am on windows 10 python 3.8 and this error message occurs: |
@AaryamanCodes see #32857, which is reporting a similar error. Can you share information on how you installed pandas over there? |
I've installed pandas using pip. I got the following versions of pip and numpy:
I am using this on OSX 10.9.2. I get the following error when trying to import pandas
The text was updated successfully, but these errors were encountered: