【问题标题】:Assistance with Mac homebrew 'hg' command协助 Mac homebrew 'hg' 命令
【发布时间】:2018-06-10 09:00:38
【问题描述】:

我最近在我的 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。

谢谢!

【问题讨论】:

    标签: macos terminal homebrew


    【解决方案1】:

    如果您使用的是 Python2,请尝试通过 pip install pygame 安装 pygame,如果您使用的是 Python3,请尝试安装 pip3 install pygame。如果您查看错误的底部,它会告诉您没有安装hg。你应该可以直接安装上面提到的。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-06-27
      • 2010-09-09
      相关资源
      最近更新 更多