pip install -r requirements.txt

 

生成文件

pip freeze > requirements.txt

 

pip install --help

 

Usage:   

  pip install [options] <requirement specifier> [package-index-options] ...

  pip install [options] -r <requirements file> [package-index-options] ...

  pip install [options] [-e] <vcs project url> ...

  pip install [options] [-e] <local project path> ...

  pip install [options] <archive url/path> ...

 

Description:

  Install packages from:

  

  - PyPI (and other indexes) using requirement specifiers.

  - VCS project urls.

  - Local project directories.

  - Local or remote source archives.

..............

 

从requirements.txt安装依赖库

pip install -r requirements


posted on 2018-10-18 15:45  shidexiao  阅读(6160)  评论(0编辑  收藏  举报

导航