个人AI环境快速搭建 📅 发布时间:2026/8/21 16:50:29 👁 浏览次数: 个人AI开发环境快速搭建环境介绍Ubuntu 22.04.3 LTS、优云智算pytorch_2.3.0_Py3.12镜像优云智算官网虚拟环境创建Conda虚拟环境conda create-nmyenvpython3.11.13更新bashrc中的环境变量conda initbashsource/root/.bashrc启用新环境conda activate myenv先验证下Python版本将新的Conda虚拟环境加入jupyterlab中condainstallipykernelipython kernelinstall--user--namemyenv验证安装常用依赖准备好自己常用的依赖requirements.txt文件一键安装依赖pipinstall-rrequirements.txt附配置conda镜像conda config--addchannels https://mirrors.ustc.edu.cn/anaconda/pkgs/main/ conda config--addchannels https://mirrors.ustc.edu.cn/anaconda/pkgs/r/ conda config--addchannels https://mirrors.ustc.edu.cn/anaconda/pkgs/msys2/ conda config--addchannels https://mirrors.ustc.edu.cn/anaconda/cloud/conda-forge/ conda config--setshow_channel_urlsyes# 验证conda config--showchannels# 清理缓存conda clean-i# 恢复默认官方源conda config --remove-key channels