1

pip install watchdog 失败并出现以下错误:

src/watchdog_fsevents.c:466:33: warning: unused parameter 'self' [-Wunused-parameter]
    watchdog_remove_watch(PyObject *self, PyObject *watch)
                                    ^
    src/watchdog_fsevents.c:491:25: warning: unused parameter 'self' [-Wunused-parameter]
    watchdog_stop(PyObject *self, PyObject *emitter_thread)
                            ^
    src/watchdog_fsevents.c:531:10: warning: missing field 'ml_meth' initializer [-Wmissing-field-initializers]
        {NULL},
             ^
    8 warnings and 2 errors generated.
    error: command '/usr/bin/clang' failed with exit status 1

    ----------------------------------------
Command "/Users/airborne/anaconda/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/7c/vvy24k6d483cwl0m6fbl0vdr0000gn/T/pip-build-BozAQp/watchdog/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/7c/vvy24k6d483cwl0m6fbl0vdr0000gn/T/pip-nx7ozu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/7c/vvy24k6d483cwl0m6fbl0vdr0000gn/T/pip-build-BozAQp/watchdog/

谁能帮忙解决这个错误?

完整的错误日志在这里http://pastebin.com/D2qq9tb1

Python 版本:Python 2.7.11 |Anaconda 2.4.1 (x86_64)

之前针对 OSX 10.9 提出的错误中建议的解决方案似乎不起作用。

4

0 回答 0