python: after installing anaconda, how to import pandas

前端 未结 13 2152
眼角桃花
眼角桃花 2021-01-31 18:00

I have installed anaconda. Now when i am trying to run

import pandas as pd

I am getting the following error

Traceback (most re         


        
13条回答
  •  不思量自难忘°
    2021-01-31 18:51

    i had pandas installed ('conda list|grep pandas') and python could find it ('python; import imp; imp.find_module("pandas");'

    However still was getting this error inside spyder. I had accidentally been using 'spyder3' instead of 'spyder' command, the former using a different python (3.5) rather than one conda is using (3.8). Running spyder and things worked as expected.

提交回复
热议问题