你若安好,便是晴天

Anaconda安装Python

1. 下载

  • 打开清华大学开源软件镜像站
https://mirrors.ustc.edu.cn/anaconda/archive/
  • 找到版本
Anaconda3-2025.06-1-Windows-x86_64.exe 

2. 安装

  • 打开安装包,点击下一步”Next"

image-20250804142729499

  • 点击我同意“I Agree"

image-20250804142754970

  • 仅为我安装,点击下一步

image-20250804142841913

  • 修改安装路径,改为

    D:\Programs\anaconda3
    

image-20250804143240825

  • 创建桌面图标,添加环境变量,安装python3.13版本

    image-20250804143805745

image-20250804143857171

image-20250804144725102

image-20250804144736393

  • 取消打勾,点击完成

image-20250804144822560

3. 检测

  • 键盘按Win+R,输入:cmd

    image-20250804145130658

  • 检查conda版本,显示版本提示则安装成功

    conda -V
    

    image-20250804145357108

  • 检查默认安装的Python版本,显示Python版本则安装成功

    Python -V
    

    image-20250804145540490

  • 检查Python的安装路径,便于我们能够定位Python在哪里

    where python
    

    image-20250804145736901

4. 镜像源管理

  • 显示镜像源
conda config --show channels

image-20250804150718512

  • 添加镜像源

    C:\Users\用户名\.condarc

    channels:
      - https://mirrors.ustc.edu.cn/anaconda/pkgs/main/
      - https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
      - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
      - defaults
    show_channel_urls: true
    
  • 查看配置的镜像源

    conda config --show channels
    
  • 删除指定的镜像源

    conda config --remove url
    

5. Python虚拟环境

  • 查看虚拟环境

    conda env list
    

    image-20250804154254755

  • 创建python虚拟环境,版本3.11

    conda create -n python_evn1 python==3.11
    

    image-20250804161816738

  • 查看虚拟环境

    conda env list
    

    image-20250804162115185

  • 激活 python_evn1

conda activate python_evn1
posted @ 2025-08-04 17:25  Newbe落花  阅读(151)  评论(0)    收藏  举报