lnlidawei

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

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

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

 

 

 

 

一、说明

 

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

 

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

 

  3、  配置matplotlib的BACKEND:

 

image

image

 

image

 

image

 

 

 ----  matplotlib_配置交互式:TkAgg

image

 

image

 

 ----  matplotlib_配置交互式:QtAgg 

image

   ----  安装:pyqt6

image

   ----  配置后端:QtAgg

image

 

 

 

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

 

 

  1、  配置文件(mod.txt)

# FILENAME:     mod.txt
# pip install a group of packages
# CMD:  pip install -r mod.txt


# BASE_PKGs
numpy
pandas


# VISUAL_DATA_PKGs
matplotlib
seaborn


# STATS_PKGs
scipy
statsmodels


# AI_PKGs

scikit-learn

# pytorch
# pytorch--cpu
#pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
# pytorch--cuda
#pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130

tensorflow


# TOOL_PKGs
jupyter

 

 

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

 

 

 

三、参考资料

 

  1.  pytorch  --  https://pytorch.org/

 

  .

posted on 2026-02-09 19:38  lnlidawei  阅读(20)  评论(0)    收藏  举报