aitextgen icon indicating copy to clipboard operation
aitextgen copied to clipboard

Cannot install aitextgen via pip3 - torch is missing.

Open IdeallyGrey opened this issue 3 years ago • 3 comments

I'll preface this by saying I'm not sure if this error should be directed here or to pytorch.

When I try to install aitextgen via pip3 the process fails here:

Collecting torch>=1.6.0 (from aitextgen)
  Could not find a version that satisfies the requirement torch>=1.6.0 (from aitextgen) (from versions: )
No matching distribution found for torch>=1.6.0 (from aitextgen)

I've tried installing torch via pip3 install torch, but this replies with Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting torch Could not find a version that satisfies the requirement torch (from versions: ) No matching distribution found for torch

I've tried using my laptop and my Raspberry Pi. Installing any other package via pip3 works fine.

Again, not sure if this error should be directed here or to pytorch.

IdeallyGrey avatar Dec 08 '21 02:12 IdeallyGrey

It seems that this error occurs with Python 3.10, but not with Python 3.8. This would lead me to believe that 3.10 is unsupported by PyTorch, but the PyTorch docs say that it should work with any version of Python above 3.5.

IdeallyGrey avatar Dec 11 '21 16:12 IdeallyGrey

You can get command for pytorch installation from https://pytorch.org And u should use Python 3.6-3.9

D4n13l3k00 avatar Dec 17 '21 11:12 D4n13l3k00

Probably, what you want is this: If you are using Windows on CPU: pip3 install torch torchvision torchaudio --user If you are using Windows on GPU: pip3 install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu113 --user

appvoid avatar Jun 24 '22 14:06 appvoid