very weird pandas behavior

ryguy7272 ryanshuell at gmail.com
Sun Dec 21 07:44:22 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?


Thanks Steven.  I just tried what you recommended, and got this.

>>> import sys
>>> print(sys.version)
2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)]
>>> print(sys.path)
['C:\\Python27\\Lib\\idlelib', 'C:\\Python27\\lib\\site-packages\\requests-2.4.3-py2.7.egg', 'C:\\Python27\\lib\\site-packages\\html-1.16-py2.7.egg', 'C:\\Python34', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']
>>> 


I also got this.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\Users\Ryan>python
Python 2.7 (r27:82525, Jul  4 2010, 07:43:08) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> python27
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python27' is not defined
>>> python33
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python33' is not defined
>>> python34
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'python34' is not defined
>>>

Any idea what's wrong?  



More information about the Python-list mailing list