簡體   English   中英

在python3.5 osx上安裝pygame

[英]installing pygame on python3.5 osx

我試圖安裝pygame

pip3 install hg+http://bitbucket.org/pygame/pygame

收到此錯誤:

Collecting hg+http://bitbucket.org/pygame/pygame
Cloning hg http://bitbucket.org/pygame/pygame to     /var/folders/vl/g_3vs3xj2clcnyc58spzmjq00000gn/T/pip-7f5mltpu-build
Error [Errno 2] No such file or directory: 'hg' while executing   command hg clone --noupdate -q http://bitbucket.org/pygame/pygame 
/var/folders/vl/g_3vs3xj2clcnyc58spzmjq00000gn/T/pip-7f5mltpu-build
Cannot find command 'hg'

要么

brew install pygame

錯誤:

Error: Failed to download resource "pygame"
Failure while executing: /usr/local/opt/mercurial/bin/hg clone https://bitbucket.org/pygame/pygame /Library/Caches/Homebrew/pygame--hg

有人用python 3.5在osx上成功安裝了pygame嗎?

你好像缺少mercurial,你可以簡單地運行

brew install mercurial

這將安裝hg,你可以從mercurial源安裝

另外為了安裝pygame你需要安裝sdl

brew install sdl

我是這樣做的:

pip3 install pygame

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM