赞
踩
ubuntu22.04安装好anaconda后
conda create -n pytorch python=3.9
想激活
conda activate pytorch
但是遇到如下报错
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
解决办法:
conda init bash
然后先是
source activate
接着才是
conda activate pytorch
验证以下:
python
import torch
print(torch.cuda.is_available())
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。