使用 Python 3.12.0 在 Windows 11 上安装 TensorFlow 时出现问题

Kri*_*hna 5 installation tensorflow

我尝试在使用 Python 3.12.0 和 pip 23.2.1(64 位)的 Windows 11 计算机上安装 TensorFlow 时遇到问题。尽管多次尝试,我仍然收到以下错误消息:


ERROR: Could not find a version that satisfies the requirement tensorflow (from versions: none)

ERROR: No matching distribution found for tensorflow

Run Code Online (Sandbox Code Playgroud)

我尝试过使用 Python 3.7.0 和 Python 3.6.4 创建虚拟环境

使用命令清除 pip 缓存pip cache purge

安装各种特定版本的 TensorFlow

tensorflow==2.1.0

tensorflow==2.5.0

tensorflow==2.2.0rc4

我希望有人知道这里可能存在什么问题

小智 4

tensorflow 目前支持 python 3.11,因此请尝试降级您的 python 版本,它应该可以工作,并尝试按照 tf 网站上的说明使用 pip 进行 tf 安装,它包含详细信息,希望有所帮助!