简体   繁体   English

使用 Anaconda 创建虚拟环境失败

[英]Fail to create virtual environment using Anaconda

I use m1 Mac.我使用 m1 Mac。 I was trying to use Anaconda create a new virtual environment with python==3.6, currently having python==3.10.我试图使用 Anaconda 创建一个新的虚拟环境,python==3.6,当前有 python==3.10。 I have tried doing this both on DataSpell and terminal.我已经尝试在 DataSpell 和终端上执行此操作。 But the error message kept pop up, "the package is not available from the current channels".但是一直弹出错误信息,“package无法从当前频道使用”。 I add conda-forge to the channel list.我将 conda-forge 添加到频道列表中。

Have you changed your Anaconda python environment to be the virtualEnv's python?您是否将Anaconda python 环境更改为 virtualEnv 的 python?

If you don't there is no way for Anaconda to know which libraries you have installed.如果您不这样做,Anaconda 将无法知道您安装了哪些库。

You can also follow this guide to Anaconda environments if you are lost.如果您迷路了,也可以按照本指南进入 Anaconda 环境

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM