树莓派安装pygame库命令
时间: 2023-10-04 13:14:03 浏览: 458
在树莓派上安装pygame库的命令可以使用以下两种方式:
1. 使用pip安装:在命令行中输入以下命令即可安装pygame库:
```
pip install pygame
```
2. 使用apt-get安装:树莓派的操作系统Raspbian自带了一个软件包管理器apt-get,可以使用以下命令安装pygame库:
```
sudo apt-get install python-pygame
```
希望以上信息对您有所帮助!<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [通过pip安装pygame](https://blog.csdn.net/weixin_32762235/article/details/112931310)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* [pygame安装失败](https://blog.csdn.net/weixin_35753431/article/details/129559019)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文