I can't install PyTorch
I tried installing it by adding it to the packages using the left menu. I have also tried
poetry add torch but every time I try, it throws this error (no enough disk space). I deleted all my other repos and kept this one yet I still can't install PyTorch.
myproject$ poetry add torch Using version ^1.9.0 for torch Updating dependencies Resolving dependencies... (253.4s) Writing lock file Package operations: 7 installs, 4 updates, 0 removals • Updating urllib3 (1.26.5 -> 1.26.6) • Updating tqdm (4.61.0 -> 4.61.1) • Updating typing-extensions (184.108.40.206 -> 220.127.116.11) • Installing huggingface-hub (0.0.12) • Updating numpy (1.20.3 -> 1.21.0) • Installing pyyaml (5.4.1) • Installing sacremoses (0.0.45) • Installing tokenizers (0.10.3) • Installing discord.py (1.7.3) • Installing torch (1.9.0): Failed EnvCommandError Command ['/opt/virtualenvs/python3/bin/pip', 'install', '--no-deps', '/home/runner/.cache/pypoetry/artifacts/ac/e2/4b/36eaa7e7f48590864972659dc7f242d1584ae5b2852600746ac88f679a/torch-1.9.0-cp38-cp38-manylinux1_x86_64.whl'] errored with the following return code 1, and output: Processing /home/runner/.cache/pypoetry/artifacts/ac/e2/4b/36eaa7e7f48590864972659dc7f242d1584ae5b2852600746ac88f679a/torch-1.9.0-cp38-cp38-manylinux1_x86_64.whl ERROR: Could not install packages due to an EnvironmentError: [Errno 122] Disk quota exceeded: '/tmp/pip-install-k1vgmm1u/torch/torch/lib/libtorch_cuda.so' WARNING: You are using pip version 19.3.1; however, version 21.1.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. at /opt/virtualenvs/python3/lib/python3.8/site-packages/poetry/utils/env.py:1075 in _run 1071│ output = subprocess.check_output( 1072│ cmd, stderr=subprocess.STDOUT, **kwargs 1073│ ) 1074│ except CalledProcessError as e: → 1075│ raise EnvCommandError(e, input=input_) 1076│ 1077│ return decode(output) 1078│ 1079│ def execute(self, bin, *args, **kwargs): Failed to add packages, reverting the pyproject.toml file to its original content.
UPDATE: A temprary workaround was to install the CPU-only version of PyTorch through pip.
$ pip3 install torch==1.8.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
@fcatus have you learned more about doing it the right way? I'm also one the hacker plan with lots of space and even trying to install the CPU-only torch gives the the "Disk quota exceeded" error.
df I have lots of space available:
df -h Filesystem Size Used Avail Use% Mounted on overlay 97G 55G 42G 57% /
@MichalCierniak My apologies for the late response, Michal, the website wasn't directing me to your comments, had to click the link in my email to find this thread again haha.
Here is what [email protected] sent me a few days ago:
Sorry to hear you're having issues!
PyTorch does not work on Replit because of its large size. This also applies to other ML models, which might work sometimes, but the repl won't handle them well because of their processing power and size.
We plan to fix this issue later on by changing the way repls use and install packages. That should hopefully resolve almost every issue with packages that are too large to fit on a repl!"
I told them, it would be nice if that were denoted on the package installer to save us all the confusion.....
Maybe because PyTorch is quite big? I know that machine learning libraries like PyTorch is usually large. I once got crashed when install Tensorflow on my computer.