Wray Lee
Articles35
Tags0
Categories0

Archive

conda修改安装路径

conda修改安装路径

conda修改安装路径

Win

conda = F:\conda

%userprofile%/.condarc

channels:
  - defaults
show_channel_urls: true
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/cloud
  msys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  bioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  menpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  pytorch-lts: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
  simpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud
envs_dirs:
  - F:\conda\envs

F:\conda\Lib\site.py

#搜索修改这两个变量
USER_SITE = "F:\conda\lib\site-packages"
USER_BASE = "F:\conda\Scripts"

conda升级

conda update conda && conda update --all

Author:Wray Lee
Link:http://blog.wray7.top/2023/09/04/Code/Python/conda%E4%BF%AE%E6%94%B9%E5%AE%89%E8%A3%85%E8%B7%AF%E5%BE%84/
版权声明:本文采用 CC BY-NC-SA 3.0 CN 协议进行许可