Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 830 Bytes

2常用的库.md

File metadata and controls

38 lines (30 loc) · 830 Bytes

常用的库

常用的库

包管理

  • pip freeze (单虚拟环境的情况)
pip freeze > requirements.txt
# 安装
pip install pipreqs
# 在当前目录生成 --force为覆盖
pipreqs . --encoding=utf8 --force
  • 使用requirements.txt安装依赖
pip install -r requirements.txt

源地址

阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
douban http://pypi.douban.com/simple
Python官方 https://pypi.python.org/simple
v2ex http://pypi.v2ex.com/simple
中国科学院 http://pypi.mirrors.opencas.cn/simple/
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/

常用的库