问题表述
在测试Qbr 魔方神器的时候遇到这个问题,主要是说setuptools.sandbox.SandboxViolation: SandboxViolation: 这个工具有问题,查了很多资料,
https://github.com/kkoomen/qbr.git
sudo python3 -m setup.py install
...
setuptools.sandbox.SandboxViolation: SandboxViolation: mkdir('/private/var/root/Library/Caches/com.apple.python/private/tmp/easy_install-28d4kntm', 511) {}
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
During handling of the above exception, another exception occurred
:......
SystemExit: error: SandboxViolation: mkdir('/private/var/root/Library/Caches/com.apple.python/private/tmp/easy_install-28d4kntm', 511) {}
...
The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.
This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand. Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
解决方案
最后找到解决办法 pip3 install --upgrade setuptools 升级下这个工具就好了