离线环境安装flask依赖包

找到当前版本需要的所有依赖包,生产flask项目生成项目依赖包文件requirements.txt

1)在当前项目目录下

生成requirements文件:pip freeze >requirements.txt

执行requirements文件,安装依赖包:pip install -r requirements.txt

2)批量下载whl

pip download -d spark-libs -r requirements.txt

3)批量安装 WHL 包

pip install --no-index --find-links=d:\spark-libs -r requirements.txt

--find-links 后面跟的是存放 whl 包的路径。

相关推荐
kcuwu.12 分钟前
Python进阶:生成器与协程,高效并发编程的核心实践
windows·python·php
XiaoQiao66699913 分钟前
python 简单题目练手【详解版】【1】
开发语言·python
ZC跨境爬虫17 分钟前
极验滑动验证码自动化实战:背景提取、缺口定位与Playwright滑动模拟
前端·爬虫·python·自动化
智算菩萨19 分钟前
【Python图像处理】2 数字图像基础与Python图像表示
开发语言·图像处理·python
xiaoshuaishuai81 小时前
Git二分法定位Bug
开发语言·python
2401_835792541 小时前
FastAPI 速通
windows·python·fastapi
YMWM_2 小时前
export MPLBACKEND=Agg命令使用
linux·python
派大星~课堂2 小时前
【力扣-148. 排序链表】Python笔记
python·leetcode·链表
微涼5302 小时前
【Python】在使用联网工具时需要的问题
服务器·python·php
小白菜又菜2 小时前
Leetcode 657. Robot Return to Origin
python·leetcode·职场和发展