简体   繁体   English

从python机盖导入熊猫时出错

[英]Error when importing Pandas from python canopy

I have installed Python Canopy 2.7 and have made it the default. 我已经安装了Python Canopy 2.7,并将其设置为默认值。 When I start python I see the version from "Enthought Canopy Python 2.7.6 | 64-bit |" 当我启动python时,会看到“ Enthought Canopy Python 2.7.6 | 64-bit |”中的版本

I can import pandas and numpy... but when I try to import statsmodels.api I get this error 我可以导入pandas和numpy ...但是当我尝试导入statsmodels.api时出现此错误

ImportError: No module named statsmodels

I have checked the Enthought website and in theory statsmodels would be inclueded in the express distribution. 我已经检查了Enthought网站,并且从理论上讲,统计模型将包含在快递中。

Thanks in advance for any help! 在此先感谢您的帮助!

Enthought Canopy comes bundled with a package manager. Enthought Canopy与软件包管理器捆绑在一起。 Use that package manager to install the module you require. 使用该程序包管理器安装所需的模块。

You are able to import pandas and numpy , since the installation comes bundled with these modules along with matplotlib etc. 您可以导入pandasnumpy ,因为安装与这些模块以及matplotlib等捆绑在一起。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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