【问题标题】:Error / Failure installing watchdog python on MacOS X [duplicate]在 MacOS X 上安装看门狗 python 错误/失败 [重复]
【发布时间】:2014-07-09 14:42:49
【问题描述】:

我想创建一个 python 程序,它可以持续监视目录的任何更改,如果更改发生如创建或修改,它应该通过 exec 执行 shell 脚本。 出于这个原因,我试图在我的 MacOsX Mavriks 上使用看门狗。但是每次我尝试安装它时,我都会收到一条错误消息 我是通过

sudo easy_install 看门狗

Searching for watchdog

Reading http://pypi.python.org/simple/watchdog/
Best match: watchdog 0.7.1
Downloading https://pypi.python.org/packages/source/w/watchdog/watchdog-0.7.1.tar.gz#md5=ffec8b4afd1058e76f6c664ade8a0de7
Processing watchdog-0.7.1.tar.gz
Running watchdog-0.7.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Z2T0_T/watchdog-0.7.1/egg-dist-tmp-rxk3TS
no previously-included directories found matching 'docs/source/_themes/.git*'
clang: error: unknown argument: '-mno-fused-madd' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
error: Setup script exited with error: command 'cc' failed with exit status 1

我还安装了它的所有依赖项,包括自制软件。

是否有任何其他 FAM 可以在我的 mac 上轻松运行,或者这将如何工作

【问题讨论】:

  • 你试过用pip安装它吗?
  • 我的系统中没有它,但我尝试使用它的源代码安装它

标签: python homebrew easy-install watchdog python-watchdog


【解决方案1】:

你需要一个额外的标志。

sudo ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future" easy_install 看门狗

这是一个 OSX 更新问题。查看这个类似(但不重复)的问题Installing Pillow, getting -Wunused-command-line-argument-hard-error-in-future

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-01-20
    • 2020-03-31
    • 1970-01-01
    • 1970-01-01
    • 2019-09-14
    • 1970-01-01
    相关资源
    最近更新 更多