A story stuck with Memory Error and No space left on device on AWS EC2

Coping

MemoryError → If you add --no-cache-dir, it will pass. No space left on device → Reduce the file size!

The following digression

Dealing with Memory Error

I tried to put tensorflow from pip on EC2 of AWS. .. ..

pip install tensorflow
~
Bright red error...
~
MemoryError

Cannot enter with Memory Error. .. .. In such a case, add --no-cache-dir to invalidate the cache! So run it again.

pip install tensorflow --no-cache-dir
~
After all error...
~
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device

The error changed to [Errno 28] No space left on device. What is the cause of this?

Dealing with No space left on device

Check the capacity

Apparently there is not enough capacity. So check it with df -h.

File system size used Remaining used%Mount position
devtmpfs         475M     0  475M    0% /dev
tmpfs            492M     0  492M    0% /dev/shm
tmpfs            492M  412K  492M    1% /run
tmpfs            492M     0  492M    0% /sys/fs/cgroup
/dev/xvda1       8.0G  5.0G  3.1G   63% /
tmpfs             99M     0   99M    0% /run/user/1000

Are you so oppressive ...? There seems to be no other cause, so for the time being, try reducing the usage rate to about 30%.

find . -xdev -type f | cut -d "/" -f 2 | sort | uniq -c | sort -nr Digression: You can find out the size of each file by hitting this command. For the time being, erase the cloned repository and the contents of pip, forcibly reduce the capacity, and re-execute!

Then I passed. Congratulations

Recommended Posts

A story stuck with Memory Error and No space left on device on AWS EC2
pip install causes "OSError: [Errno 28] No space left on device"
A story about a python beginner stuck with No module named'http.server'
A story about trying to use cron on a Raspberry Pi and getting stuck in space
Launched a web application on AWS with django and changed jobs
I get a Python No module named'encodings' error with the aws command
A memo with Python2.7 and Python3 on CentOS
A story about a 503 error on Heroku open
A story about trying to install uwsgi on an EC2 instance and failing
Build a Python + bottle + MySQL environment with Docker on RaspberryPi3! [Trial and error]
Build a TensorFlow development environment on Amazon EC2 with command copy and paste
Build a WardPress environment on AWS with pulumi
Try Tensorflow with a GPU instance on AWS
[Python3] A story stuck with time zone conversion
A story stuck with handling Python binary data
A story about making 3D space recognition with Python
# 2 Build a Python environment on AWS EC2 instance (ubuntu18.04)
Create Amazon Linux with AWS EC2 and log in
Execute python3 system with PHP exec () on AWS EC2
Build AWS EC2 and RDS with Terraform Terraform 3 minutes cooking
A swampy story when using firebase on AWS lamda