pip找不到tensorflowgpu 2.0alph

2024-04-23 16:23:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试安装tensorflow gpu,版本是2.0.0-alpha0。我试过这两个命令:

pip install tensorflow-gpu==2.0.0-alpha0
pip install -U --pre tensorflow-gpu==2.0.0-alpha0

皮普说:

^{pr2}$

但是,pypi上的tensorflow gpu页面肯定有2.0.0-alpha0版本。我知道我可以从源代码构建,也可以直接从pypi下载包,但我更希望了解为什么会发生这种情况。在

我做错什么了? 我也用pip18.1和19.0.3尝试了上述命令。在

我阅读了pip文档,发现了以下内容:

Starting with v1.4, pip will only install stable versions as specified by pre-releases by default.

The pip install command also supports a –pre flag that enables installation of pre-releases and development releases.

--pre Include pre-release and development versions. By default, pip only finds stable versions.


Tags: installpip命令版本pypidefaultonlyby
1条回答
网友
1楼 · 发布于 2024-04-23 16:23:25

实际版本是^{},而不是{}。你想要:

pip install  pre tensorflow-gpu==2.0.0a0

您还需要在兼容的Windows或Linux系统上运行它。项目仅publishes releases用于:

  • Linux,用于Python2.7、3.3、3.4、3.5、3.6和3.7,使用x86?64 CPU
  • Windows,用于Python 3.5、3.6、3.7,带amd64 CPU

相关问题 更多 >