当前位置: 首页 > news >正文

Windows11安装miniconda

Windows11安装miniconda

1. 下载地址

  • https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda
操作系统和芯片架构 文件
MacOS Intel Chip Miniconda3-latest-MacOSX-x86_64.sh
MacOS Apple Silicon Miniconda3-latest-MacOSX-arm64.sh
Linux x86_64 Miniconda3-latest-Linux-x86_64.sh
Linux aarch64 Miniconda3-latest-Linux-aarch64.sh
Windows x86_64 Miniconda3-latest-Windows-x86_64.exe

2. 安装步骤

双击“Miniconda3-latest-Windows-x86_64.exe”

image

image

image

image

image

image

image

image

image

3. 配置镜像加速

创建 C:\Users\username\.condarc 文件(注意 username 是实际的用户名),内容如下:

channels:- defaults
default_channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/msys2
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
anaconda_channels:- https://repo.anaconda.com/pkgs/main- https://repo.anaconda.com/pkgs/r
auto_activate_base: false
show_channel_urls: true

创建 C:\Users\username\pip\pip.ini文件(注意 username 是实际的用户名),内容如下:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = pypi.tuna.tsinghua.edu.cn

4. 测试

以下命令在 Anaconda Prompt 命令行窗口执行。

# 查看 python 版本
(base) C:\Users\yangyunhe>python -V
Python 3.13.5# 创建虚拟环境
((base) C:\Users\yangyunhe>conda create -n testenv python=3.11# 激活虚拟环境
(base) C:\Users\yangyunhe>conda activate testenv# 查看 python 版本
(testenv) C:\Users\yangyunhe>python -V
Python 3.11.14# 查看现有的环境(* 代表目前生效的环境)
(testenv) C:\Users\yangyunhe>conda env list# conda environments:
#
base                   D:\apps\miniconda
testenv              * D:\apps\miniconda\envs\testenv# 切换环境
(testenv) C:\Users\yangyunhe>conda activate base# 删除环境
(base) C:\Users\yangyunhe>conda env remove -n testenv# 设置不自动启用 base 环境
(base) C:\Users\yangyunhe>conda config --set auto_activate_base false
http://icebutterfly214.com/news/457/

相关文章:

  • 10.27 CSP-S模拟40 改题记录
  • 详细介绍:Redis多租户资源隔离方案:基于ACL的权限控制与管理
  • 20251027周一日记
  • 学校协同云盘怎么选?2025年10大热门教育网盘推荐与对比
  • GPU集群之间的交互
  • CF1267G Game Relics
  • 102302115方朴第一次作业
  • 解题报告-梦熊 CSP-S2025 模拟赛T2
  • 鄙“站”麻将和算24,刷新后会换
  • 20232422 2025-2026-1 《网络与系统攻防技术》实验三实验报告
  • 20232404 2025-2026-1 《网络与系统攻防技术》实验三实验报告
  • 「WC2014-紫荆花之恋」题解
  • 谢谢你周医生
  • 来源未知
  • Date 10.27
  • 10.27及动手动脑
  • go包装bing搜索
  • 鼾声识别芯片方案和睡眠产品的应用场景
  • 2025年工程管理软件公司综合推荐榜:助力建筑行业数字化升级
  • Excel高性能异步导出完整方案!
  • 2025年多功能综合杆厂家排名前十推荐
  • 2025年度在线网站客服系统综合排行榜正式发布
  • JDD Oxygen智能零售论坛 | 《大模型时代的广告营销变革与实践》
  • 2025年市面上新加坡留学品牌、行业内公司及口碑产品推荐排行
  • 11-文件上传
  • TensorFlow与PyTorch深度对比分析:从基础原理到实战选择的完整指南 - 指南
  • Navicat 17 超详细保姆级下载安装教程:附激活工具使用步骤​
  • el-date-picker样式修改
  • 浅谈 Agent 开发工具链演进历程
  • 电梯调度算法结对编程作业