2

I'm following a Python tutorial where pandas is used and I'm running into a dependency issue that I can't figure out.

To install pandas, I ran:

pip install pandas

But when I open a python session and try to import pandas I get an error message saying "Missing required dependencies ('numpy')" despite the fact that I see it getting installed when I run the pip command to install pandas.

Help would be appreciated. Thanks.

Edit: Full error message posted below:

PS C:\Python> python
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 07:18:10) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import pandas
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
 File "C:\Users\user1\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pandas\__init__.py", line 19, in <module>
  "Missing required dependencies {0}".format(missing_dependencies))
ImportError: Missing required dependencies ['numpy']
asked Jun 20, 2017 at 15:08
2
  • 1
    do you have more than 1 python version installed??? Commented Jun 20, 2017 at 15:10
  • 1
    Thanks for the suggestion - I think it may have been possibly related to having multiple versions. I believe many months ago I may have installed the 64 bit version of python then proceeded to install a 32 bit version as well. Either way, I uninstalled Python, then re-installed and tried the same process I had been using and it worked properly. Thanks again. Commented Jun 20, 2017 at 15:37

1 Answer 1

1

try to install Anaconda 3 (it works on Windows and Linux), it contains all the useful libraries like panda, numpy... so you don't have to download or rebuild yourself

answered Jun 20, 2017 at 15:16
Sign up to request clarification or add additional context in comments.

1 Comment

Although I fixed my issue as stated in the comment above, I'll be sure to check out Anaconda. That's for the suggestion.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.