我在我的M1 mac上安装tensorflow
的过程中使用conda create --name tf python=3.10
创建并激活了一个新的conda环境,但在使用conda install -c apple tensorflow-deps
安装tensorflow-deps
时,我遇到了以下错误:
(tf) prabasadhikari@Prabass-MBP Major Project % conda install -c apple tensorflow-deps
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow-deps
Current channels:
- https://conda.anaconda.org/apple/osx-64
- https://conda.anaconda.org/apple/noarch
- https://repo.anaconda.com/pkgs/main/osx-64
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/r/osx-64
- https://repo.anaconda.com/pkgs/r/noarch
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
我确定我想要的软件包在https://anaconda.org/apple/tensorflow-deps上可用。有人能解决我面临的问题吗?
1条答案
按热度按时间utugiqy61#
Quar的评论帮助我找到了本文之后的解决方案:https://towardsdatascience.com/python-conda-environments-for-both-arm64-and-x86-64-on-m1-apple-silicon-147b943ffa55
关键是下载安装Miniforge3-MacOSX-arm64.sh,注意下载安装ARM版本。