Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyTorch issue in requirements.txt #151

Open
joelb92 opened this issue Jul 9, 2024 · 1 comment
Open

PyTorch issue in requirements.txt #151

joelb92 opened this issue Jul 9, 2024 · 1 comment

Comments

@joelb92
Copy link

joelb92 commented Jul 9, 2024

When performing a
pip install -r requirements.txt
on Ubuntu 22.04 with python 3.10, we receive this error

 × Running setup.py install for pytorch did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-5380e9mr/pytorch_738d7a5252c5452a8062cfd877cfb51c/setup.py", line 11, in <module>
          raise Exception(message)
      Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
      [end of output]
@mosidd-01
Copy link

It seems pytorch has been renamed to torch so I modified the file requirements.txt to the following and I was able to get it working

pytorch-lightning==1.8.6
torch>=1.9.0
tqdm
bcolz-zipline
prettytable
menpo
mxnet
opencv-python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants