首页 > 解决方案 > 协助 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。

谢谢!

标签: macosterminalhomebrew

解决方案


pip install pygame如果您使用的是 Python2 和 Python3,请尝试安装 pygame pip3 install pygame。如果您查看错误的底部,它会告诉您尚未hg安装。如上所述,您应该可以直接安装。


推荐阅读