WordPress添加运行时间,网站排名优化教程,小程序注册登录,wordpress 繁体语言包在Linux系统上安装Conda安装教程 在Linux系统上安装Conda#xff0c;特别是Miniconda#xff08;Conda的一个小型版本#xff0c;包含conda、Python和一些必要的库#xff0c;非常适合快速开始使用#xff09;的步骤如下#xff1a;
1. 准备工作
打开终端#xff1a;首…在Linux系统上安装Conda安装教程 在Linux系统上安装Conda特别是MinicondaConda的一个小型版本包含conda、Python和一些必要的库非常适合快速开始使用的步骤如下
1. 准备工作
打开终端首先打开你的Linux系统的终端。
2. 下载Miniconda安装脚本
使用wget下载在终端中使用wget命令下载Miniconda安装脚本。以下是一个示例命令假设我们要下载Python 3.8版本的Miniconda3且使用清华大学镜像站
wget https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py38_4.12.0-Linux-x86_64.sh请替换版本号和URL以匹配你需要的版本。
3. 验证下载文件
可选地验证下载文件的完整性确保下载无误。使用sha256sum或md5sum命令与官方提供的校验和进行比对。
4. 安装Miniconda
增加执行权限给下载的脚本赋予执行权限。
chmod x Miniconda3-py38_4.12.0-Linux-x86_64.sh运行安装脚本执行安装脚本并按照提示操作。在安装过程中你可能需要阅读并同意许可协议选择安装路径默认通常是~/miniconda3以及是否将conda添加到你的PATH环境变量中。
./Miniconda3-py38_4.12.0-Linux-x86_64.sh5. 配置环境
如果在安装过程中未自动配置PATH手动添加。编辑你的shell配置文件如.bashrc、.bash_profile或.zshrc添加以下行
export PATH/path/to/your/miniconda3/bin:$PATH将/path/to/your/miniconda3替换为你的Miniconda实际安装路径。
应用更改使配置生效运行
source ~/.bashrc # 或者是你的相应配置文件6. 验证安装
激活conda base环境并检查conda版本
conda activate
conda --version7.可选设置conda镜像源
为了加快后续包的下载速度你可以设置conda使用国内的镜像源。编辑.condarc文件位于用户根目录下如果没有则创建添加镜像源配置
channels:- defaults
show_channel_urls: true
channel_alias: https://mirrors.tuna.tsinghua.edu.cn/anaconda/
default_channels:- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/r
custom_channels:conda-forge: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmsys2: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudbioconda: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudmenpo: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudpytorch: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloudsimpleitk: https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud至此你就完成了Miniconda在Linux系统上的安装和基本配置可以开始创建虚拟环境、安装软件包等操作了。