简体   繁体   English

Ubuntu 18.04 Python 3.7.5 无法安装 tensorflow?

[英]Ubuntu 18.04 Python 3.7.5 can't install tensorflow?

I am trying to install tensorflow 2.2.0 but without luck:我正在尝试安装 tensorflow 2.2.0 但没有运气:

sudo pip3 install tensorflow==2.2.0 gives me the following error: sudo pip3 install tensorflow==2.2.0给了我以下错误:

Could not find a version that satisfies the requirement tensorflow==2.2.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 2.0.0a0, 2.0.0b0, 2.0.0b1)

Please advise how can I solve this issue, I have checked almost all the Q&A here without luck.请告诉我如何解决这个问题,我已经检查了几乎所有的问答,但没有运气。

I am on Ubuntu 18.04 with Python 3.7.5我在使用 Python 3.7.5 的 Ubuntu 18.04

From git来自git

TensorFlow 2 packages require a pip version >19.0. TensorFlow 2 包需要 pip 版本 >19.0。 Could you please upgrade pip using the below command and let us know if it works.您能否使用以下命令升级 pip 并让我们知道它是否有效。

pip install --upgrade pip.

For more information please check this TensorFlow guide.有关更多信息,请查看此 TensorFlow 指南。 Thanks!谢谢!

Try running pip3 install --upgrade pip And then running the install.尝试运行pip3 install --upgrade pip然后运行安装。 Did this help?这有帮助吗?

If you're on Ubuntu 18.04, you're in luck: that's an LTS version of Ubuntu, and you can install the Lambda Labs stack .如果您使用的是 Ubuntu 18.04,那么您很幸运:这是 Ubuntu 的 LTS 版本,您可以安装Lambda Labs 堆栈 That's what I would recommend.这就是我要推荐的。 That'll handle everything from your drivers to the Python stack.这将处理从驱动程序到 Python 堆栈的所有内容。 Only thing is: this installs Lambda Labs onto your native /usr/bin/python install.唯一的问题是:这会将 Lambda Labs 安装到您的本机/usr/bin/python安装中。 That's typically what I want, but maybe you'd prefer a more containerized version.这通常是我想要的,但也许您更喜欢容器化的版本。 That you should look into Docker, Kubernetes, etc.你应该研究 Docker、Kubernetes 等。

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

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