树莓派 - 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
安装方法一: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
相关文章推荐
- linux下查看Python安装路径
- 【Linux技术】linux中查看python的安装路径
- 查看python源码之jieba安装
- python pip查看安装模块
- 树莓派上编译安装Python3
- MAC中查看Python安装路径
- 如何查看PYTHON的安装位置以及安装第三方库的位置
- ubuntu python版本查看 安装pyhton3.5版本
- 树莓派python入门(1):树莓派系统安装与初次连接
- 查看python的安装目录
- 如何查看已经安装的python软件包和版本
- 如何在树莓派上安装python和GPIO库
- python pip ,安装,卸载,查看等命令,不同版本
- 【一】查看python安装路径
- 树莓派安装MySQL并关联Python
- Python---查看安装路径
- 树莓派python环境安装第三方库的方法
- python3-django Mac下安装以及查看路径
- 查看python 里已经安装的第三方库的版本号
- ubuntu技巧--python查看已安装包