树莓派命令总结


一. 基本命令

sudo raspi-config 系统设置命令
sudo poweroff 关机
sudo reboot  重启

二. 使用 pip 给指定版本的 Python 安装模块

查看版本
pip -V    注意: 是大写的V
pip2 -V
pip3 -V

通过pip给指定python版本安装
sudo pip2 install 模块名
或
python2 -m pip install 模块名

sudo pip3 install 模块名
或
python3 -m pip install 模块名

卸载
sudo pip uninstall 模块名 

三. 修改pip源

pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

四. 国内源

# 豆瓣
https://pypi.doubanio.com/simple/
# 阿里云    
https://mirrors.aliyun.com/pypi/simple/
# 清华大学
https://pypi.tuna.tsinghua.edu.cn/simple/
https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/

五. 查看linux是几位

getconf LONG_BIT

六. 摄像头配置

1. 升级固件
$ sudo apt-get update
$ sudo apt-get upgrade 

2. 配置
$ sudo raspi-config

3. 

文章作者: 梵星
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 梵星 !
  目录