我正在尝试使用 PhaseNet,它请求张量流==2.14.0。但是,当我尝试安装tensorflow时,pip不显示版本2.14的可用性:
pip install tensorflow==2.14.0
ERROR: Could not find a version that satisfies the requirement tensorflow==2.14.0 (from versions: 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0, 2.17.1, 2.18.0rc0, 2.18.0rc1, 2.18.0rc2, 2.18.0)
ERROR: No matching distribution found for tensorflow==2.14.0
我已经安装了2.16.1,但是PhaseNet在尝试使用tensorflow时不起作用。它显示以下消息:
File "/opt/anaconda3/envs/phasenet/lib/python3.12/site-packages/tensorflow/python/util/lazy_loader.py", line 207, in __getattr__
raise AttributeError(
AttributeError: `conv2d` is not available with Keras 3.
有人有任何建议如何安装tensorflow==2.14.0,当它在pip上不可用时吗?
提前致谢, 吉列尔梅