anaconda 安装库,终端手动指定下载源

1.使用 pip 命令指定源(AAA替换为你要安装的库)

python 复制代码
# 清华 PyPI 源
pip install AAA -i https://pypi.tuna.tsinghua.edu.cn/simple

# 阿里云 PyPI 源(速度也很快)
pip install AAA -i https://mirrors.aliyun.com/pypi/simple/

# 豆瓣源(备用)
pip install AAA -i https://pypi.douban.com/simple/

2.使用 conda 命令指定源

python 复制代码
# 示例:安装 opencv-contrib-python,指定清华镜像源
conda install -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ opencv-contrib-python

# 安装 pytorch,指定清华源(解决官方源慢的问题)
conda install -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/ pytorch torchvision torchaudio

# 安装常用库(如 numpy、ffmpeg)
conda install -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ numpy ffmpeg
相关推荐
小小代码狗22 分钟前
SQLi-Labs 基础注入实战教程(Less-1 ~ Less-5and Less-9)
服务器·python·php
nanawinona1 小时前
2026年下半年量化学习,不同基础要查不同缺口
人工智能·python
CTA量化套保1 小时前
最新量化表达入门,从概念规则到简单实现
人工智能·python
吃饱了得干活2 小时前
别再手动解析 LLM 输出了!LangChain 四种结构化输出方案对比
后端·python·langchain
ikun_文2 小时前
Python进阶—函数编程
python·pycharm
MC皮蛋侠客2 小时前
uv 系列(三):依赖、锁文件与环境同步——可重复构建的核心
python·uv
量化吞吐机2 小时前
2026年交易想法转Python,中间先补规则转译
人工智能·python
用户298698530142 小时前
Python 实现 Excel 与 Markdown 互转的实用指南
后端·python·excel
决战灬2 小时前
langgraph之interrupt(事例篇)
人工智能·python·agent
IPdodo_2 小时前
Codex 总是 Reconnecting?从 401 到响应流中断的排查方法
python·requests