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

ubuntu18.04安装miniforge3

1.下载安装文件

略(注:从同事哪里拖来的安装包)

2.修改安装文件权限

chmod +x Miniforge3-Linux-x86_64.sh

3.将它安装到指定位置

micromamba activate /home/xxx/fxp/fromDukto/miniforge3

4.激活

/home/xxx/fxp/fromDukto/miniforge3/bin/conda init

5. 虽然通过-b选项已经将Miniforge3安装到了指定位置,但有时你可能需要手动配置环境变量以确保conda命令可以在任何地方使用。你可以将以下行添加到你的~/.bashrc

sudo gedit ~/.bashrc

加入:

#添加miniforge3的环境变量
export PATH="/home/xxx/fxp/fromDukto/miniforge3/bin:$PATH"

然后,重新加载配置文件:

source ~/.bashrc

6. 过运行以下命令来验证Miniforge3是否正确安装

conda --version

终端输出:

 

8.修改源文件

在 /home/xxx/fxp/fromDukto/miniforge3下面有个.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

原始是这样的:

修改为:

 

相关文章:

  • 基于Python的网络爬虫技术研究
  • OpenBayes 一周速览|1分钟生成完整音乐,DiffRhythm人声伴奏一键搞定; Stable Virtual Camera重塑3D视频创作
  • 按键消抖(用状态机实现)
  • Elasticsearch 学习规划
  • 技术优化实战解析:Stream重构与STAR法则应用指南
  • 16. git push
  • [ctfshow web入门] web33
  • Manifold-IJ 2022.1.21 版本解析:IntelliJ IDEA 的 Java 增强插件指南
  • QEMU源码全解析 —— 块设备虚拟化(17)
  • Redis - 字典(Hash)结构和 rehash 机制
  • Java NIO之Buffer
  • [wifi SAE]wpa3-personal
  • [raspberrypi 0w and respeaker 2mic]实时音频波形
  • UE5 运行时动态将玩家手部模型设置为相机的子物体
  • HTML视频和音频
  • springboot调用python文件,python文件使用其他dat文件,适配windows和linux,以及docker环境的方案
  • 2025年优秀的文件加密软件排名
  • PostgreSQL-容器运行时索引修复
  • 6.1es新特性解构赋值
  • spring常用的设计模式
  • 烟台网站制作工具/电商代运营公司
  • 做电子网站/aso优化服务站
  • 网站设计排版怎么做/北京企业网络推广外包
  • 网站制作价格服务/百度seo排名优化软件
  • 哪里有网站建设哪家好/网站推广途径
  • 作风建设简报--门户网站/百度账号怎么注册