简体   繁体   中英

ImportError ''No Module Named Pandas'', installed by Miniconda

thanks for checking out my question.

I know this question has been posted a couple of times and I went through answers carefully, but none of them could solve my problem. So I have to post it, thanks for understanding.

My Scenario is: I tried to install Pandas on my Python 2.7 (windows 7). I used Miniconda to install it and tested code to make sure I did install it. But from python command line, it gave me an ImportError 'No Module named Pandas' (detail is in below)

>>> import pandas as pd
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pandas 

So I tried again to install it via Pip, and I am right, according to the terminal, Pandas was already installed. Please see below: 在此处输入图片说明

Then I run test code from Python command line, still get 'No module named Pandas' error. Got confused here...

It works if you open Anaconda terminal (instead of Python terminal) and run test code. The 'importError' is gone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM