免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 5400 | 回复: 1
打印 上一主题 下一主题

导入pandas模块失败 [复制链接]

论坛徽章:
6
IT运维版块每日发帖之星
日期:2015-09-05 06:20:00IT运维版块每日发帖之星
日期:2015-09-06 06:20:00IT运维版块每日发帖之星
日期:2015-10-17 06:20:00IT运维版块每周发帖之星
日期:2015-11-06 19:28:13IT运维版块每日发帖之星
日期:2015-11-07 06:20:00操作系统版块每周发帖之星
日期:2015-12-02 15:01:04
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2015-09-07 18:20 |只看该作者 |倒序浏览
python是2.7.8,执行import命令后提示错误信息如下:
>>> import pandas
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\Lib\site-packages\pandas\__init__.py", line 13, in <module>
    "extensions first.".format(module))
ImportError: C extension: DLL load failed: 找不到指定的模块。 not built. If you
want to import pandas from the source directory, you may need to run 'python set
up.py build_ext --inplace' to build the C extensions first.

相关模块都是通过pip安装的,详细信息如下:
c:\>pip install pandas
Requirement already satisfied (use --upgrade to upgrade): pandas in c:\python27\
lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in c:\pyth
on27\lib\site-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in c:\
python27\lib\site-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.0 in c:\pyt
hon27\lib\site-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in c:\python2
7\lib\site-packages (from python-dateutil->pandas)

c:\>pip install matplotlib
Requirement already satisfied (use --upgrade to upgrade): matplotlib in c:\pytho
n27\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): pyparsing>=1.5.6 in c:
\python27\lib\site-packages (from matplotlib)
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.6 in c:\pytho
n27\lib\site-packages (from matplotlib)
Requirement already satisfied (use --upgrade to upgrade): pytz in c:\python27\li
b\site-packages (from matplotlib)
Requirement already satisfied (use --upgrade to upgrade): python-dateutil in c:\
python27\lib\site-packages (from matplotlib)
Requirement already satisfied (use --upgrade to upgrade): six>=1.4 in c:\python2
7\lib\site-packages (from matplotlib)

有大神遇到过么?帮忙看看啥情况,我到site-package目录下的pandas文件夹中未找到setup.py,所以错误信息要求运行python setup.py build_ext --inplace应该在哪个目录运行啊?

论坛徽章:
6
IT运维版块每日发帖之星
日期:2015-09-05 06:20:00IT运维版块每日发帖之星
日期:2015-09-06 06:20:00IT运维版块每日发帖之星
日期:2015-10-17 06:20:00IT运维版块每周发帖之星
日期:2015-11-06 19:28:13IT运维版块每日发帖之星
日期:2015-11-07 06:20:00操作系统版块每周发帖之星
日期:2015-12-02 15:01:04
2 [报告]
发表于 2015-09-07 21:29 |只看该作者
我检查了一下安装的版本,是由于下载错误了,应该是32位基于python2的numpy module文件,卸载并重新安装就好了  :)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP