我遇到了 Tensorflow 安装问题。我有一台 M1 Mac,它有一组不同的安装说明。我正在运行 Python 3.12.1,我已删除已卸载并重新安装的 Anaconda,创建了新环境,但不确定如何解决该问题。
我已经尝试过这些指令集:
(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 ~ %
python3 -m pip install tensorflow-macos
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)
有人可以和我一起完成这个过程吗?
您可以使用
python -m pip install tensorflow
而不是 python -m pip install tensorflow-macos
安装。
或者尝试
pip install tensorflow-macos==2.15.0