简体   繁体   English

如何安装无法通过 pip 获得的 tensorflow 版本

[英]How to install version of tensorflow that isn't available through pip

I am attempting to install a specific version of tensorflow as part of the requirements for some code I'm trying to use ( https://github.com/serengil/deepface )我正在尝试安装特定版本的 tensorflow 作为我尝试使用的某些代码的要求的一部分( https://github.com/serengil/deepface

When I attempt to install it like I normally do in command prompt I get the following.当我尝试像往常一样在命令提示符下安装它时,我得到以下信息。

C:\Windows\system32>pip install tensorflow==1.9.0
ERROR: Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1)
ERROR: No matching distribution found for tensorflow==1.9.0

I have referenced a few other Stackoverflow questions ( Installing Tensorflow 1.9 in Windows ) and haven't been able to find a solution or how to go about getting the version needed.我参考了其他一些 Stackoverflow 问题( 在 Windows 中安装 Tensorflow 1.9 ),但一直无法找到解决方案或如何获取所需的版本。

tensorflow==1.9.0 is available on PyPI ( link ). tensorflow==1.9.0在 PyPI 上可用(链接)。 Your issue is that you are probably using Python 3.7, which 1.9.0 doesn't support, only Python 2.7 and 3.3 to 3.6.您的问题是您可能使用的是 Python 3.7,而 1.9.0 不支持它,只有 Python 2.7 和 3.3 到 3.6。 Install 64bit Python 3.6 and use it instead of 3.7.安装 64 位 Python 3.6 并使用它而不是 3.7。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM