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
相关推荐
leisoo80973 小时前
100GBA股股票数据怎么存ClickHouseRedisMySQLJSON完整对比
大数据·linux·服务器·开发语言·python
WangYan20223 小时前
基于XGBoost与AI的生态—地学多源数据建模:植被与土地利用识别、土壤碳氮空间预测、生物多样性驱动机制、土壤微生物功能预测、生态退化与风险识别
python·机器学习·xgboost
金銀銅鐵6 小时前
[Python] 借助 turtle 逐字展示唐诗《金缕衣》
python
Python大数据分析@8 小时前
使用大模型MCP采集数据,爬虫已经无门槛
python·网络爬虫
quantdash_cc8 小时前
告别自建 Requests/BS4 网页爬虫:基于 QuantDash 搭建零维保的高性能量化行情流水线
开发语言·爬虫·python·pandas·量化·quantdash
65岁退休Coder8 小时前
LangChain v1.3.4 笔记 - 07 补充:链式调用 LCEL
后端·python·langchain
卷无止境9 小时前
FastAPI 部署在 Nginx 后面到底该怎么配
后端·python
半亩码田9 小时前
C#转Python第3.1篇:Python 的 class 没有访问修饰符?面向对象的另一条路
开发语言·python·c#
Wzx1980129 小时前
python沙箱和docker沙箱你选对了吗?
开发语言·python·docker
Python私教9 小时前
签名 URL 刷新导致审批失效?别急着删掉所有 query
python·安全