'Is disk space shown in Compute Engine -> Disk on google cloud ,the drive that packages get installed?
I'm trying to install nightly version of pytorch on my google cloud account using the following command
pip3 install --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cu113
But I receive the following error
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device
Then I can't do anything else as my disk is filled. I try
pip3 uninstall pytorch
and I get the message
WARNING: Skipping pytorch as it is not installed.
So my questions are 3 fold:
- Considering that I have just purchased this account, why disk space is already filled?
- Now that I can't
uninstallthe package, how can I remove the downloaded pytorch files to open up some space? - When I click on
Compute Engine -> Disk, I see that the size of the disk is 100GB, so why I can't install a simple pytorch package?
Solution 1:[1]
Most likely it is you are trying to download the data to your /tmp temporary location.
You can set your TMPDIR directory to /var/tmp by running the following command:
export TMPDIR='/var/tmp'
As mentioned in the Github link, you can also create a directory where you have enough space, say /folder/address/here/, and run below command to install it:
TMPDIR=/folder/address/here/ pip install --cache-dir=$TMPDIR --build $TMPDIR package-name
As suggested by @John Hanley The Google Console GUI supports resizing the disk larger.You can resize your disk at least 10 GB larger and then do disk clean up.
Refer to the stack post for more information.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Fariya Rahmat |

