英文:
Conda Python version
问题
我尝试使用Python版本3.8.2创建一个新的conda环境。当我运行conda create -n envName python=3.8.2
时,我收到以下错误消息:
PackagesNotFoundError: 以下包在当前渠道中不可用:
- python=3.8.2
当我尝试安装3.8.6
时,环境可以正常设置,但某种原因3.8.2无法工作。如何安装3.8.2?
英文:
I'm trying to create a new conda env using python version 3.8.2
When I run conda create -n envName python=3.8.2
I get the following error message:
PackagesNotFoundError: The following packages are not available from current channels:
- python=3.8.2
When I try to install 3.8.6
, the env is set up with no problem - but for some reason 3.8.2 doesn't work. How can I install 3.8.2 ?
答案1
得分: 1
如果有人在ARM架构的Mac机器上遇到此问题,目前发现M1芯片与conda的交互存在问题。解决方法是使用:
CONDA_SUBDIR=osx-64 conda create -n envName python=3.8.2
接着执行
conda config --env --set subdir osx-64
然后,您可以像平常一样使用conda。
英文:
If anyone's having this issue with ARM-based Mac machines, turns out currently there's a problem with the M1 chip and conda interaction. The solution is to use:
CONDA_SUBDIR=osx-64 conda create -n envName python=3.8.2
followed by
conda config --env --set subdir osx-64
then on, you can use conda as usual.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论