【python3】 pip用配置文件安装模块(数理统计模块、人工智能模块)
【python3】 pip用配置文件安装模块(数理统计模块、人工智能模块)
一、说明
1、 PIP 可以使用配置文件,来安装模块(库)。
2、 配置文件安装模块的方法: pip install -r config_name.txt
3、 配置matplotlib的BACKEND:




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


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

---- 安装:pyqt6

---- 配置后端:QtAgg

二、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/
.
本文由 lnlidawei 原创、整理、转载,本文来自于【博客园】; 整理和转载的文章版权归属【原创作者】; 转载或引用时【请保留文章的来源信息】:https://www.cnblogs.com/lnlidawei/p/19596771

浙公网安备 33010602011771号