MemoryError → If you add --no-cache-dir
, it will pass.
No space left on device → Reduce the file size!
The following digression
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?
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