拓冰建站拓冰建站
首页 / 资讯中心 / 正文

个人AI环境快速搭建

个人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
分享:

看完干货,该让你的企业上线了

免费需求沟通 · 48 小时内出具建站方案 · 河南本地可上门