我无法让brew链接pygame
,当我尝试安装pygame
时,我收到权限错误
$ brew install pygame
==> Installing pygame from homebrew/homebrew-python
Error: You must `brew link sdl' before pygame can be installed
$ brew link sdl
Linking /usr/local/Cellar/sdl/1.2.15...
Error: Could not symlink share/man/man3/SDLKey.3
/usr/local/share/man/man3 is not writable.
从这个错误消息中不清楚我应该符号链接(symbolic link)什么?
最佳答案
您应该使用 sudo chown -R $(whoami)/usr/local/share
将这些路径的所有权归还给您的用户帐户。
关于python - brew link sdl 无法链接,给出权限被拒绝错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29725304/