无法通过 Anaconda 在 Python 上下载 Tensorflow

问题描述 投票:0回答:1

我遇到了 Tensorflow 安装问题。我有一台 M1 Mac,它有一组不同的安装说明。我正在运行 Python 3.12.1,我已删除已卸载并重新安装的 Anaconda,创建了新环境,但不确定如何解决该问题。

我已经尝试过这些指令集:

  1. https://caffeinedev.medium.com/how-to-install-tensorflow-on-m1-mac-8e9b91d93706
(myenv) manavkhanna@Manavs-MacBook-Pro ~ % conda activate mlp
(mlp) manavkhanna@Manavs-MacBook-Pro ~ % conda install -c apple tensorflow-deps
Collecting package metadata (current_repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: unsuccessful attempt using repodata from current_repodata.json, retrying with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: unsuccessful initial attempt using frozen solve. Retrying with flexible solve.
Solving environment: - 
Found conflicts! Looking for incompatible packages.
This can take several minutes.  Press CTRL-C to abort.
failed                                                                          

UnsatisfiableError: The following specifications were found to be incompatible with each other:

Output in format: Requested package -> Available versions

(mlp) manavkhanna@Manavs-MacBook-Pro ~ % 
  1. https://developer.apple.com/metal/tensorflow-plugin/
python3 -m pip install tensorflow-macos 
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)

有人可以和我一起完成这个过程吗?

python tensorflow anaconda apple-m1
1个回答
0
投票

您可以使用

python -m pip install tensorflow
而不是
python -m pip install tensorflow-macos
安装。

或者尝试

pip install tensorflow-macos==2.15.0

© www.soinside.com 2019 - 2024. All rights reserved.