您的位置:首页 > 编程语言 > Python开发

树莓派 - 2 Python - a 包的安装和查看

2017-12-15 15:56 323 查看
假设包名为xyz,例如:PIL,Pillow



安装方法一:apt-get (推荐)

# 更新软件

sudo apt-get update

# 安装包

sudo apt-get install python-xyz    # python 2

sudo apt-get install python3-xyz  # python 3

安装方法二:pip

# 安装pip

sudo apt-get install python-pip    # python 2  

sudo apt-get install python3-pip  # python 3     

# 安装包

sudo pip install xyz     # python 2   

sudo pip3 install xyz   # python 3       

查看已经安装了哪些包

pip list     # python 2   

pip3 list   # python 3    

-------------------------------------------------------------------------
常用:

sudo apt-get install python3-numpy

sudo apt-get install python3-scipy

sudo apt-get install python3-matplotlib
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: