如果需要创建一个python3.9.0版本的
conda create -c conda-forge -n youwant_name -c conda-forge python=3.9.0
启动
activate yourwant_name
如果要安装,比如mindspore
conda install mindspore-cpu -c mindspore -c conda-forge
检验是否安装成功
python -c "import mindspore;mindspore.set_context(device_target='CPU');mindspore.run_check()"
如果输出:
MindSpore version: 版本号
The result of multiplication calculation is correct, MindSpore has been installed on platform [CPU] successfully!
说明MindSpore安装成功了
当需要升级MindSpore版本时,可执行如下命令:
conda update mindspore-cpu -c mindspore -c conda-forge
然后再vscode里面找你想要的python3.9.0版本就可以了。