AI环境配置
安装清单
miniconda
Visual Studio Code
miniconda安装配置
anaconda powershell prompt 固定到开始屏幕
右击windows图标
输入:Set-ExecutionPolicy -Scope CurrentUser RemoteSigned
A
使用anaconda powershell
输入:conda init
更换镜像源
校园网联合镜像站 :
conda换源
复制配置文件
anaconda powershell 输入:
notepad .condarc
conda clean -a
第三方源:conda-forge paddle pytorch
nvidia
pip换源
anaconda powershell输入:
python -m pip install --upgrade pip
pip config set global.index-url https://mirrors.cernet.edu.cn/pypi/web/simple
配置AI环境
创建与激活conda环境
创建conda环境 :
conda create -n eggcode python=3.10
激活环境:
conda activate eggcode
退出环境:
conda deactivate
删除环境:
conda remove -n eggcode --all
安装一些包
pip install jupyter
jupyter-notebook 可打开路径
安装cuda:
anaconda powershell 输入:
nvidia-smi #查看当前CPU支持的最高CUDA版本
看当前CPU支持的最高CUDA版本
[外链图片转存中…(img-fe4xn7KB-1694255284723)]