فشل 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 لا يبدو أنها تعمل - https://github.com/gorakhargosh/watchdog/issues/224
تلقيت 9 تحذيرات على OS X 10.10.5 ، ولكن clang لا تفشل لذلك تم تثبيت watchdog. هذا مع نظام Python (2.7.11) ، وتم اختباره مرة أخرى باستخدام Python3 و PyPy المثبت في المنزل. Apple LLVM 7.0.2 (clang-700.1.81)
ثابت بالرقم 467.
ما زلت أحصل على error: command 'clang' failed with exit status 1
، ها هو إجمالي ناتج تشغيل pip install watchdog
. أنا على macOS 10.14.4. لم يساعد القيام بـ CC=/usr/bin/gcc pip install watchdog
كما هو مقترح هنا .
التعليق الأكثر فائدة
ما زلت أحصل على
error: command 'clang' failed with exit status 1
، ها هو إجمالي ناتج تشغيلpip install watchdog
. أنا على macOS 10.14.4. لم يساعد القيام بـCC=/usr/bin/gcc pip install watchdog
كما هو مقترح هنا .