Ubuntu 安装 Anaconda3

📅2026/7/14 15:14:44 👁️次浏览
Ubuntu 安装 Anaconda3
本文详细阐述了在 Ubuntu 系统中安装 Anaconda3 的完整流程。包括 Anaconda3 安装包的获取途径具体安装过程中的每一个步骤及注意事项还有安装后的环境变量设置和安装成功的验证方法。旨在为 Ubuntu 用户提供清晰、易懂且准确的 Anaconda3 安装指南帮助读者顺利完成安装为后续的 Python 开发和数据处理工作奠定基础。1. 下载Anaconda下载地址Anaconda | Anaconda Distribution下载适合电脑Python版本和计算平台的版本。2. 安装 Anacondabash Anaconda3-5.3.0-Linux-x86_64.sh # make sure append the Anaconda executable一直按回车遇到下面的提示按回车会安装到默认目录如果系统安装盘不够大建议安装在其它挂载盘上这里输入你想要安装的目录然后按回车。Anaconda3 will now be installed into this location:/home/xxx/anaconda3- Press ENTER to confirm the location- Press CTRL-C to abort the installation- Or specify a different location below遇到下面的信息表示安装成功no change /home/xueht/disk/anaconda3/condabin/conda no change /home/xueht/disk/anaconda3/bin/conda no change /home/xueht/disk/anaconda3/bin/conda-env no change /home/xueht/disk/anaconda3/bin/activate no change /home/xueht/disk/anaconda3/bin/deactivate no change /home/xueht/disk/anaconda3/etc/profile.d/conda.sh no change /home/xueht/disk/anaconda3/etc/fish/conf.d/conda.fish no change /home/xueht/disk/anaconda3/shell/condabin/Conda.psm1 no change /home/xueht/disk/anaconda3/shell/condabin/conda-hook.ps1 no change /home/xueht/disk/anaconda3/lib/python3.12/site-packages/xontrib/conda.xsh no change /home/xueht/disk/anaconda3/etc/profile.d/conda.csh modified /home/xueht/.zshrc For changes to take effect, close and re-open your current shell. Thank you for installing Anaconda3!启动# directory to your PATH environment variable in .bashrc source ~/.bashrc python --version # to show the python version3. 推荐切换到国内源anaconda的源改为国内镜像配置文件是~/.condarcconda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/ conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/ conda config --set show_channel_urls yespip源改为国内镜像配置文件是~/.pip/pip.conf该后的文件内容如下:[global] index-url https://pypi.tuna.tsinghua.edu.cn/simple/ [install] trusted-hosthttps://pypi.tuna.tsinghua.edu.cnupdate condaconda update conda -y conda update anaconda -y conda update python -y conda update --all -y参考文献https://www.pugetsystems.com/labs/hpc/Install-TensorFlow-with-GPU-Support-the-Easy-Way-on-Ubuntu-18-04-without-installing-CUDA-1170/Ubuntu18.04 NVidia显卡 Anaconda3 Tensorflow-GPU 安装、配置、测试 无需手动安装CUDA - xbit - 博客园