Python &引用;“不允许操作”;在macOS上安装moduce时

Python &引用;“不允许操作”;在macOS上安装moduce时,python,macos,python-3.x,Python,Macos,Python 3.x,我希望安装: https://github.com/jdennis/keycloak-httpd-client-install 并试图通过: sudo python3 setup.py install 但我得到: creating /usr/share/keycloak-httpd-client-install error: could not create '/usr/share/keycloak-httpd-client-install': Operation not permitted

我希望安装:

https://github.com/jdennis/keycloak-httpd-client-install
并试图通过:

sudo python3 setup.py install
但我得到:

creating /usr/share/keycloak-httpd-client-install
error: could not create '/usr/share/keycloak-httpd-client-install': Operation not permitted

我应该怎么做?

路径/usr/share在(SIP)下,这会阻止修改指定的系统路径和文件。需要更改安装程序以使用不同的路径,例如/usr/local/share。您可以通过启动到恢复模式来禁用SIP,然后安装,但不建议这样做。事实上,pip安装提供了
ValueError:path'/usr/share/keydape httpd client install/templates'不能是绝对的
。这个包裹有问题。