Skip to content
Sign upLog in
← Back to Community
Pytorch
Profile icon
426729

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:
image
Built-in:
image

Voters
Profile icon
EdwardLOWE
Profile icon
ZEG111
Profile icon
julesai
Profile icon
426729
Comments
hotnewtop
Profile icon
programmeruser

poetry add torch

Profile icon
426729

@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.

Profile icon
ZEG111

Having the same problem...

Profile icon
julesai

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