当我尝试下载
tensorflow
的版本高于 2.11 时,我收到此代码块,并想知道我应该获取哪个频道,以便我可以安装我需要的 tensorflow
版本
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow=2.15*
Current channels:
- https://conda.anaconda.org/conda-forge
- https://conda.anaconda.org/sean
- defaults
- https://conda.anaconda.org/anaconda/win-64
尝试询问 GPT-4 但没有结果,所以我希望有人可以提供帮助。另外,我希望我正确地获取了频道和包的关系!
conda-forge
频道没有适用于 Windows 的 TensorFlow 2.x 版本。 anaconda
频道(包含在“默认”频道中)确实有针对 Windows 的版本,但是最新版本是 2.10.0。
您可以使用conda
进行搜索:
# this returns nothing.
conda search -c defaults -c conda-forge "tensorflow-base>=2.12"
对旧版本的搜索会显示 Windows 的最新版本,仅在默认频道中。
conda search -c defaults -c conda-forge "tensorflow-base>=2.9"