当前位置: 首页 > news >正文

【python3】 pip用配置文件安装模块(数理统计模块、人工智能模块)

【python3】 pip用配置文件安装模块(数理统计模块、人工智能模块)

 

 

 

 

一、说明

 

  1、  PIP 可以使用配置文件,来安装模块(库)。

 

  2、  配置文件安装模块的方法:  pip  install  -r  config_name.txt

 

 

 

 

二、PIP经过配置文件来安装模块

 

  1、  配置文件(mod.txt)

[wit@ubuntu:pip_install]$ cat mod.txt # pip install a group of packages
# CMD:  pip install -r mod.txt# BASE_PKGs
numpy
pandas# VISUAL_DATA_PKGsmatplotlibseaborn# STATS_PKGsscipystatsmodels# AI_PKGsscikit-learn# pytorch
torch
torchvision
torchaudiotensorflow# TOOL_PKGs
jupyter

 

 

  2、  安装方法:  pip  install  -r  mod.txt

 

 

 

 

三、参考资料

 

  1.  无

 

  .