【问题标题】:Trouble Porting Pandas for Python on Mac在 Mac 上为 Python 移植 Pandas 时遇到问题
【发布时间】:2012-11-02 22:18:27
【问题描述】:

我一直在为计算投资课程移植一些东西,并且我得到了所有其他 macport,但是

>"sudo port install py27-pandas @0.7.3" 

给我带来了很多麻烦。这是我得到的回报:

>John--MacBook-Pro:~ John$ sudo port install py27-pandas @0.7.3
Password:
--->  Computing dependencies for py27-pandas
--->  Dependencies to be installed: py27-scipy gcc45 swig-python bison gsed swig py27-tables hdf5-18 lzo2 py27-cython cython_select py27-numexpr py27-scientific netcdf
--->  Building gcc45
Error: org.macports.build for port gcc45 returned: command execution failed
Error: Failed to install gcc45
Please see the log file for port gcc45 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_gcc45/gcc45/main.log
Error: The following dependencies were not installed: py27-scipy gcc45 swig-python bison gsed swig py27-tables hdf5-18 lzo2 py27-cython cython_select py27-numexpr py27-scientific netcdf
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port py27-pandas failed

我确实有 Xcode,用于 Xcode 的 CLT,但我一定缺少其他东西。感谢大家的帮助!

【问题讨论】:

  • 它告诉你查看日志文件。你试过吗?它说什么?您可能需要使用 MacPorts 开具支持票
  • 另一种选择是使用easy_install...是否有理由选择0.7.3?这是指熊猫的版本吗? (现在是 0.9.0)
  • poorsod - 我不知道如何打开日志文件。请给我指示。
  • hayden - 据我所知,它指的是 python 2.7,但我会尝试使用“0.9.0”移植。
  • 肯定py27指的是2.7,0.7.3是pandas版本,注意0.9.0 is in macports。说是怪怪的失败是来自gcc45...

标签: python macos pandas


【解决方案1】:

如果您无法使用 MacPorts 进行设置,我建议您从免费的 EPDFree(不包括 pandas,但可以从源代码轻松安装)或 Anaconda CE(包括 pandas)发行版开始。

【讨论】:

    猜你喜欢
    • 2021-06-08
    • 1970-01-01
    • 2020-10-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多