anaconda使用

常用指令:

  1. conda info #查看当前环境信息
  2. conda info -e #查看已经创建的所有虚拟环境
  3. conda activate xx#切换到xx虚拟环境
  4. set CONDA_FORCE_32BIT=1 #切换到32位
  5. set CONDA_FORCE_32BIT=0 #切换到64位
  6. conda create -n xx python=x.x #创建一个版本为x.x,名为xx的虚拟环境
  7. conda remove -n env_name --all #移除环境
  8. conda install xxx #安装名为xxx的库
  9. conda list #查询看当前环境中安装了哪些包
  10. conda create --help #查询帮助

安装时注意事项:

由于要使用CUDA进行加速,因此必须选择对应版本的pytorch,本机上,安装指令为conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch,python环境版本为3.9

  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2023 J-sycamore