pip常用命令

1. 安装第三方库

1
2
pip install scrapy
python -m pip install scrapy

2. 更新第三方库

1
pip install scrapy -U

3. 制作本地*.whl安装离线包

1
pip wheel pycrpyo

4. 导出pip list列表到requirements.txt

1
pip freeze > requirements.txt