文章詳情頁
Ubuntu中python3.5 安裝pygame失敗,怎么安裝?
瀏覽:120日期:2022-08-16 09:50:39
問題描述
Command 'python setup.py egg_info' failed with error code 1 in /tmp/pip-pwsdicnz-build/You are using pip version 8.1.1, however version 9.0.1 is available.You should consider upgrading via the ’pip install --upgrade pip’ command.
使用的是 pip3 install --user hg+http://bitbucket.org/pygame/p...
問題解答
回答1:看報(bào)錯(cuò)啊,你需要類似 freetype-dev 之類的包。后邊還有幾個(gè)「not found」,也不知道會(huì)不會(huì)影響到你。
這也是我一直不建議手動(dòng)安裝的原因:有太多的依賴你得自己猜測、處理。直接用系統(tǒng)包管理器安裝,一條命令搞定所有安裝,多省事。
上一條:python怎么使用matplotlib畫出下面這樣的圖?下一條:python 運(yùn)行多個(gè)函數(shù),如何讓單個(gè)函數(shù)的報(bào)錯(cuò)不影響其他函數(shù)的執(zhí)行
相關(guān)文章:
排行榜

熱門標(biāo)簽