如何安装指定python版本和包版本的虚拟环境

conda create -n cog python=3.10.11 numpy=1.23.5 -y

安装时指定版本即可

conda activate cog

激活虚拟环境

你可能感兴趣的:(python,开发语言)