python - brew link sdl 无法链接,给出权限被拒绝错误

标签 python pygame sdl homebrew

我无法让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/

相关文章:

python /PyQt4 : How do you find the SIZE of a monitor (in inches)?

python - 在argparse中使用 '--help'命令

python - 画圆不显示

python - 如何连续改变正弦声音的频率?

sdl - 使用 SDL 2.0 获取 8 位调色板输出时遇到问题

c++ - 矩形碰撞检测 SDL 2.0

python - 如何根据不同的条件很好地生成一些Python脚本?

java - 二十一点极小极大算法

python - 如何在pygame中平滑移动

c - 调用更改结构体值的函数时出现问题