admin管理员组

文章数量:1122846

I am trying to use PhaseNet and it request the tensorflow==2.14.0. However, when I try to install the tensorflow, the pip does not shows availability of the version 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

I have installed the 2.16.1, but the PhaseNet didn't work when it try to use the tensorflow. It shows the following message:

 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.

Does someone have any suggestion how to install the tensorflow==2.14.0 when it is not available on pip?

Thanks in advance, Guilherme

I am trying to use PhaseNet and it request the tensorflow==2.14.0. However, when I try to install the tensorflow, the pip does not shows availability of the version 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

I have installed the 2.16.1, but the PhaseNet didn't work when it try to use the tensorflow. It shows the following message:

 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.

Does someone have any suggestion how to install the tensorflow==2.14.0 when it is not available on pip?

Thanks in advance, Guilherme

Share Improve this question asked Nov 22, 2024 at 15:56 gwsmelogwsmelo 274 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 1

tensorflow 2.14.0 requires and provides wheels for Pythons 3.9, 3.10, 3.11.

Use Python 3.11.

本文标签: pythonIssue between MacOS 13 and tensorflowStack Overflow