macos - 协助 Mac homebrew 'hg' 命令
问题描述
我最近在我的 Mac 上安装了自制软件,同时遵循有人制作的本机运行某些以前无法实现的东西的指南。我还安装并更新了“点子”。我在使用命令时遇到问题:
sudo pip install hg+http://bitbucket.org/pygame/pygame
我收到以下消息作为回报:
The directory '/Users/WilsonHuijsie/Library/Caches/pip/http'
or its parent directory is not owned by the current user
and the cache has been disabled. Please check the permissions
and owner of that directory. If executing pip with sudo, you
may want sudo's -H flag. The directory
'**/Users/WilsonHuijsie/Library/Caches/pip**' or its parent
directory is not owned by the current user and caching wheels
has been disabled. check the permissions and owner of
that directory. If executing pip with sudo,
you may want sudo's -H flag.
Collecting hg+http://bitbucket.org/pygame/pygame
Cloning hg http://bitbucket.org/pygame/pygame to /private/tmp/pip-req-build-6TUq7C
Error [Errno 2] No such file or directory while executing command hg clone --noupdate -q http://bitbucket.org/pygame/pygame /private/tmp/pip-req-build-6TUq7C Cannot find command 'hg' - do you have 'hg' installed and in your PATH?
我对我的计算机有完全访问权限,所以我不知道第一部分是关于什么的,我认为最后一部分与“hg”的问题有关?如果有人可以提供帮助,将不胜感激。
另请注意,虽然我在终端/自制命令方面没有经验,也不知道很多是什么意思/做什么,但我确实了解一般的编码,尤其是 python。
谢谢!
解决方案
pip install pygame
如果您使用的是 Python2 和 Python3,请尝试安装 pygame pip3 install pygame
。如果您查看错误的底部,它会告诉您尚未hg
安装。如上所述,您应该可以直接安装。
推荐阅读
- javascript - 溢出问题:悬停时隐藏/可见切换。Gif 可在帖子中找到
- git-clean - 我可以找回被 git 清理过的东西吗?
- javascript - indexOf 用于角度打字稿
- django - Django DateTimeField 显示为字符串
- typescript - 如何使用@PnP/SP 从列表中查询列表项和附件?
- html - 提交到数据库时,单选按钮仅选择离子中的第一个值
- java - 在java中使用awt创建抛物线时出现重绘问题
- razor - ASP.NET mvc5 - @{ Html.BeginForm();} 与 @using (Html.BeginForm())
- php - (PHP MYSQL) 将 html 表行更新到 mysql 数据库
- wpf - 如何在 DataGridTextColumn 自定义控件中创建 IList Dep 属性