简体   繁体   中英

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. 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. 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. Please help and thanks in advance.

installing the TensorFlow on the EC2 instance

  • Increase the storage on the hard disk (30 GB on my case_
  • pip install 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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