我正在运行导入 inotify 的python代码但是我收到此错误:
Traceback (most recent call last):
File "decoder.py", line 4, in <module>
import inotify.adapters
File "/Users/dan_lab7/Library/Python/2.7/lib/python/site-packages/inotify/adapters.py", line 10, in <module>
import inotify.calls
File "/Users/dan_lab7/Library/Python/2.7/lib/python/site-packages/inotify/calls.py", line 39, in <module>
inotify_init = _LIB.inotify_init
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 375, in __getattr__
func = self.__getitem__(name)
File "/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ctypes/__init__.py", line 380, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: dlsym(0x111f74c10, inotify_init): symbol not found
我正在使用macOS Sierra。 我怎么解决这个问题?谢谢