Ask coding questions

← Back to all posts
Pytorch
426729 (181)

Is there any way to use pytorch in Repl.it? I tried installing it as a package (pip install torch) through pip and the built-in package manager, but it did not work.
Pip:

Built-in:

Comments
hotnewtop
426729 (181)

@programmeruser

$ poetry add torch
Using version ^1.7.1 for torch

Updating dependencies
Resolving dependencies... (0.2s)

Writing lock file


Package operations: 1 install, 0 updates, 0 removals

  - Installing torch (1.7.1)

[EnvCommandError]
Command ['/opt/virtualenvs/python3/bin/pip', 'install', '--no-deps', 'torch==1.7.1'] errored with the following return code -9, and output: 
Collecting torch==1.7.1
  Downloading torch-1.7.1-cp38-cp38-manylinux1_x86_64.whl (776.8 MB)

I just tried that and it also failed; it seems that the fundamental error with pip still happens when I use poetry.

julesai (3)

I also tried it and failed. Is it because of memory restrictions?