環境:
- 蘋果 M1 Max
- 帶有 Python 3.9 的 Conda 環境/Miniforge3
所有 tensorflow dep 都已安裝:
tensorboard 2.10.1 pypi_0 pypi
tensorboard-data-server 0.6.1 pypi_0 pypi
tensorboard-plugin-wit 1.8.1 pypi_0 pypi
tensorflow-deps 2.10.0 0 apple
tensorflow-estimator 2.10.0 pypi_0 pypi
tensorflow-macos 2.10.0 pypi_0 pypi
tensorflow-metal 0.6.0 pypi_0 pypi
...
$ python
>>> import tensorflow as tf
>>> print(tf.__version__)
2.10.0
一切看起來都不錯,但是當我去安裝 CLU ( https://pypi.org/project/clu/ ) 時,我收到一條錯誤訊息,提示找不到 tensorflow。
這是我嘗試過的:
$ pip install clu==0.0.7
...
Collecting etils[epath]
Using cached etils-0.8.0-py3-none-any.whl (127 kB)
Collecting jaxlib
Using cached jaxlib-0.3.22-cp39-cp39-macosx_11_0_arm64.whl (54.5 MB)
ERROR: Could not find a version that satisfies the requirement tensorflow (from clu) (from versions: none)
ERROR: No matching distribution found for tensorflow
錯誤:找不到滿足要求 tensorflow 的版本(來自 clu)(來自版本:無) 錯誤:沒有找到 tensorflow 的匹配分布
怎么會這樣?是因為它在 tensorflow-deps 下嗎?有沒有辦法將這個/別名重定向到 tensorflow 以便在我的 conda 環境中被識別?讓我知道是否有人以前遇到過這個問題。
uj5u.com熱心網友回復:
一個快速的解決方法(不是很好)是:
- 克隆 CLU 存盤庫 ( https://github.com/google/CommonLoopUtils )
- 從 setup.py 中洗掉 tensorflow 庫。Tensorflow 將通過您在 Mac 上使用 tensorflow-deps 等安裝它的方式來識別,
- 造輪子
- 安裝在 conda/env 中
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/522945.html
標籤:张量流康达苹果-m1皮皮
上一篇:訓練后的遷移學習自定義模型
