用清华源安装python模块

用清华源安装python模块(以安装tensorflow-cpu为例)

-i:指定一个镜像源

python 复制代码
pip install tensorflow-cpu -i https://pypi.tuna.tsinghua.edu.cn/simple/

速度很快

在豆包上搜索了下其他用法,记录下:

python 复制代码
# 安装单个模块(以安装requests为例)
pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple

# 安装指定版本的模块
pip install requests==2.31.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

# 升级模块
pip install --upgrade requests -i https://pypi.tuna.tsinghua.edu.cn/simple

# 安装requirements.txt中的所有模块
pip install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple
相关推荐
Littlehero_1216 小时前
QT自定义控件之热换站系统(源码开源)
开发语言·qt
meilindehuzi_a6 小时前
Python 基础语法(1):常量、变量、类型、输入输出与运算符
开发语言·python
caimouse6 小时前
ReactOS 窗口系统分析(5):可见区域与窗口 DC — vis.c + windc.c
c语言·开发语言
Zane19946 小时前
调用了 async 函数却没执行?一文讲透协程、event loop 与 await
后端·python
OPEN-F6 小时前
Python进阶教程:装饰器与生成器深入
开发语言·python
zhipujiaoyu6 小时前
2026年大数据专科何去何从?就业前景、发展趋势全揭秘!
大数据·python
l1258656 小时前
# RAG噪声知识库治理:一致性与可信度的四层防线设计
数据库·人工智能·python·自然语言处理·langchain
zoujiahui_20186 小时前
别再只写 np.random.seed() 了:default_rng 与 np.random、random 到底差在哪?
python
Patrick在香港6 小时前
Claude Agent 进阶:4 种工具调用编排模式,让 0820 那 13 个 endpoint 并行起来
python·ai·ai编程
qq_513728047 小时前
StaleElementReferenceException(陈旧元素引用异常)
python