一.pip类
1.安装依赖
pip install -r requirement.txt
-r:安装requirement.txt文件中的依赖
2.查看某个包是否安装
pip list |grep opencv-python
3.安装包
pip3 install opencv-python
3.1 安装django
3.1.1 安装
sudo pip3 install Django==3.0.7
3.1.2 查看安装目录
MacBook-Pro ~ % python3
Python 3.8.2 (default, Apr 8 2021, 23:19:18)
[Clang 12.0.5 (clang-1205.0.22.9)] on darwin
Type “help”, “copyright”, “credits” or “license” for more information.
>>> import sys