very weird pandas behavior

ryguy7272 ryanshuell at gmail.com
Sun Dec 21 20:01:50 EST 2014


On Saturday, December 20, 2014 10:46:40 AM UTC-5, ryguy7272 wrote:
> I downloaded pandas and put it in my python directory, then, at the C-prompt, I ran this:
> "pip install pandas"
> 
> It looks like everything downloaded and installed fine.  Great.
> 
> Now, in Python Shell, I enter this:
> import pandas as pd
> 
> I get this error.  
> Traceback (most recent call last):
>   File "<pyshell#19>", line 1, in <module>
>     import pandas as pd
> ImportError: No module named pandas
> 
> 
> Any idea what I'm doing wrong?



Sorry for being so dense here guys!!  I do tons and tons of work with VBA, VB, C#, SQL, R, Matlab, and a little work with Pascal.  I guess that's preventing me from understanding how Python works.  Sorry, but I just don't understand this thing.  I uninstalled Python27 and just reinstalled it.  I open the cmd prompt, and entered two short commands: 'pip install numpy' & 'pip install pandas'.  Then, I got to Python Shell and enter this: 'import numpy' & 'import pandas'.  immediately I get errors.  

Traceback (most recent call last):
  File "<pyshell#2>", line 1, in <module>
    import numpy
ImportError: No module named numpy

Traceback (most recent call last):
  File "<pyshell#3>", line 1, in <module>
    import pandas
ImportError: No module named pandas

I guess if I can't do something simple, I can't do anything complex...or anything at all.

Part of the problem is, I don't know why in 2014 we're entering commands in the C-prompt to run a Windows program.  I thought all of that stuff was over in the very early 1990s.  Also, I can't understand why Python can't download this from the Internet.  

If someone can help me figure this out, I'd be most appreciative.  I don't want to give up, but after spending over 6 months learning Python, and reading 15 Python books cover to cover, I don't understand why a simple 'import pandas' can't even work!!  That's about as basic as it gets.

Ugh.



More information about the Python-list mailing list