导出当前环境下的最小依赖

首先安装包

pip install pipreqs

然后在环境根目录导出

pipreqs ./ --encoding=utf8

镜像源配置

在windows中,搜索pip.ini,去修改

或者使用命令行来配置

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

取消配置

pip config unset global.index-url

读取当前的配置:

pip config get global.index-url