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

linux离线安装miniconda环境

1 下载安装包

可以在官网下载最新版

https://www.anaconda.com/download/success#miniconda

或者在软件目录选择合适的版本

https://repo.anaconda.com/miniconda/

安装包传入离线服务器

./Miniconda3-py311_24.9.2-0-Linux-x86_64.sh

2 运行安装包

./Miniconda3-py311_24.9.2-0-Linux-x86_64.sh

屏幕输出:

Welcome to Miniconda3 py311_24.9.2-0In order to continue the installation process, please review the license
agreement.
Please, press ENTER to continue
>>>

按enter键下一步

显示条款,按q键下一步

输入yes同意条款,按enter键开始安装

Do you accept the license terms? [yes|no]
>>> yes

选择安装位置,按enter键 使用默认的位置:/root/miniconda3

Miniconda3 will now be installed into this location:
/root/miniconda3- Press ENTER to confirm the location- Press CTRL-C to abort the installation- Or specify a different location below[/root/miniconda3] >>>

安装完成,屏幕输出:

Preparing transaction: done
Executing transaction: done
installation finished.
Do you wish to update your shell profile to automatically initialize conda?
This will activate conda on startup and change the command prompt when activated.
If you'd prefer that conda's base environment not be activated on startup,run the following command when conda is activated:conda config --set auto_activate_base falseYou can undo this by running `conda init --reverse $SHELL`? [yes|no]
[no] >>>

输入yes,自动更新shell profile。

no change     /root/miniconda3/condabin/conda
no change     /root/miniconda3/bin/conda
no change     /root/miniconda3/bin/conda-env
no change     /root/miniconda3/bin/activate
no change     /root/miniconda3/bin/deactivate
no change     /root/miniconda3/etc/profile.d/conda.sh
no change     /root/miniconda3/etc/fish/conf.d/conda.fish
no change     /root/miniconda3/shell/condabin/Conda.psm1
no change     /root/miniconda3/shell/condabin/conda-hook.ps1
no change     /root/miniconda3/lib/python3.11/site-packages/xontrib/conda.xsh
no change     /root/miniconda3/etc/profile.d/conda.csh
modified      /root/.bashrc==> For changes to take effect, close and re-open your current shell. <==Thank you for installing Miniconda3!

3 查看bashrc

conda已经添加了以下内容


# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/root/miniconda3/bin/conda' 'shell.bash' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; theneval "$__conda_setup"
elseif [ -f "/root/miniconda3/etc/profile.d/conda.sh" ]; then. "/root/miniconda3/etc/profile.d/conda.sh"elseexport PATH="/root/miniconda3/bin:$PATH"fi
fi
unset __conda_setup
# <<< conda initialize <<<

4 验证安装

重启终端或者输入source ~/.bashrc,就可以看到base环境

source ~/.bashrcpython --version

正常输出python版本,安装结束

http://www.lryc.cn/news/545981.html

相关文章:

  • 考研408数据结构线性表核心知识点与易错点详解(附真题示例与避坑指南)
  • selenium用例执行过程采集操作形成测试报告上的回复
  • 多元数据直观表示(R语言)
  • 【JavaEE】线程安全
  • HarmonyOS 5.0应用开发——多线程Worker和@Sendable的使用方法
  • 华为OD-2024年E卷-分批萨[100分]
  • SSH监控
  • leetcode日记(74)扰乱字符串
  • RV1126的OSD模块和SDL_TTF结合输出H264文件
  • GEE:计算长时间序列NPP与NDVI之间的相关系数
  • 水仙花数(华为OD)
  • 【对话状态跟踪】关心整个对话过程用户完整意图变化
  • 【分享】网间数据摆渡系统,如何打破传输瓶颈,实现安全流转?
  • TikTok创作者市场关闭!全新平台TikTok One将带来哪些改变?
  • LeetCode hot 100—矩阵置零
  • 部署Windows Server自带“工作文件夹”实现企业网盘功能完整步骤
  • 植物大战僵尸杂交版v3.3最新版本(附下载链接)
  • 非关系型数据库和关系型数据库的区别
  • CPU负载高告警问题的定位与优化建议
  • 2月28日,三极管测量,水利-51单片机
  • 批量提取 Word 文档中的图片
  • C#—Settings配置详解
  • UI自动化框架介绍
  • 【工具推荐】在线提取PDF、文档、图片、论文中的公式
  • 帮我设计一个c语言学习阶段
  • 解决windows npm无法下载electron包的问题
  • 网络编程 day01
  • 【三.大模型实战应用篇】【4.智能学员辅导系统:docx转PDF的自动化流程】
  • 2915. 和为目标值的最长子序列的长度
  • 谷仓的安保