Traceback (most recent call last):


 "webcam_demo.py", line 3, in <module>

from pydarknet import Detector, Image
ImportError: dlopen(/usr/local/lib/python3.6/site-packages/pydarknet.cpython-36m-darwin.so, 2): Library not loaded: libdarknet.so

Traceback (most recent call last):


 "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main

return _run_code(code, main_globals, None,


 "/usr/lib/python3.8/runpy.py", line 87, in _run_code

exec(code, run_globals)


 "/usr/lib/python3.8/site-packages/pip/__main__.py", line 26, in <module>

sys.exit(_main())


 "/usr/lib/python3.8/site-packages/pip/_internal/cli/main.py", line 73, in main

command = create_command(cmd_name, isolated=("--isolated" in cmd_args))


 "/usr/lib/python3.8/site-packages/pip/_internal/commands/__init__.py", line 104, in create_command

module = importlib.import_module(module_path)


 "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 1014, in _gcd_import


 "<frozen importlib._bootstrap>", line 991, in _find_and_load


 "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 671, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 783, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/usr/lib/python3.8/site-packages/pip/_internal/commands/freeze.py", line 12, in <module>

from pip._internal.operations.freeze import freeze


 "/usr/lib/python3.8/site-packages/pip/_internal/operations/freeze.py", line 16, in <module>

from pip._internal.req.constructors import (


 "/usr/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 12, in <module>

from .req_install import InstallRequirement


 "/usr/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 30, in <module>

from pip._internal.operations.install.wheel import install_wheel


 "/usr/lib/python3.8/site-packages/pip/_internal/operations/install/wheel.py", line 37, in <module>

from pip._internal.utils.wheel import parse_wheel


 "/usr/lib/python3.8/site-packages/pip/_internal/utils/wheel.py", line 12, in <module>

from pip._vendor.six import PY2, ensure_str
ImportError: cannot import name 'ensure_str' from 'six' 
