简体   繁体   English

无法在 EC2 实例上安装 tensorflow Ubuntu 20.04

[英]failed to install tensorflow on a EC2 instance Ubuntu 20.04

I have a flask application that I would like to run it on an EC2 instance and TensorFlow is needed cause it is image classification.我有一个 flask 应用程序,我想在 EC2 实例上运行它,并且需要 TensorFlow 因为它是图像分类。 However, after the necessary updates and upgrades, I try to install TensorFlow but after the progress bar completes, I don't see the successfully installed tensorflow==2.7.0.然而,在必要的更新和升级之后,我尝试安装 TensorFlow 但在进度条完成后,我没有看到成功安装的 tensorflow==2.7.0。 Images are attached, is there any reason for why it is not letting me install TensorFlow, or does the instance have limitations that won't let me install it.图片已附上,是否有任何原因不让我安装 TensorFlow,或者该实例是否有限制不允许我安装它。 Please help and thanks in advance.请帮助并提前致谢。

installing the TensorFlow on the EC2 instance在 EC2 实例上安装 TensorFlow

  • Increase the storage on the hard disk (30 GB on my case_增加硬盘上的存储空间(我的情况下是 30 GB_
  • pip install tensorflow-cpu pip 安装tensorflow-cpu

link 关联

I also faced the same error and apparently the storage was not the reason.我也遇到了同样的错误,显然存储不是原因。 I tried using large instance with large memory and I was able to install tensorflow in the anaconda environment successfully.我尝试使用带有大 memory 的大实例,并且能够在 anaconda 环境中成功安装 tensorflow。

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

相关问题 如何在 Ubuntu 20.04 GCP 实例上安装 virtualenv? - how to install virtualenv on Ubuntu 20.04 GCP instance? 无法连接到 aws ec2 ubuntu 实例 - unable to connect to the aws ec2 ubuntu instance ssh ec2 连接失败,因为 ec2 实例上没有剩余空间 - ssh connection failed for ec2 as there is no space left on ec2 instance 无法在 AWS EC2 实例 Ubuntu 上安装来自亚马逊存储库的软件包 - Unable to install packages from amazon repo on AWS EC2 instance Ubuntu 无法获取 Amazon EC2 实例 ID - Failed to get Amazon EC2 instance ID ansible 脚本“SHELL”与在 ubuntu 机器 20.04 EC2 上直接运行 Shell 命令的细微差别? - The subtle difference in an ansible script "SHELL" and the directly running Shell commands on an ubuntu machine 20.04 EC2? EC2 Ubuntu 实例 - 未受保护的私钥文件 - EC2 Ubuntu Instance - UNPROTECTED PRIVATE KEY FILE 如何在 Amazon Linux (EC2) 实例上安装 GTK3 和 Firefox? - How to install GTK3 and Firefox on Amazon Linux (EC2) instance? 如果设置了安全组,则无法使用 terraform 创建 ec2 实例 - failed to create ec2 instance using terraform if set security group 如何在 AWS EC2 实例上安装 apt-get? - How to install apt-get on AWS EC2 instance?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM