Image2Paragraph icon indicating copy to clipboard operation
Image2Paragraph copied to clipboard

install not work with python = 3.8.16

Open tankwin08 opened this issue 2 years ago • 8 comments

Hi, Thanks for the great work. try to replicate your work here, i created a new env and try pip install -r requirements.txt. but it give me an error.

ERROR: Could not find a version that satisfies the requirement torch==1.9.0+cu111 (from versions: 1.7.1, 1.8.0, 1.8.1, 1.9.0, 1.9.1, 1.10.0, 1.10.1, 1.10.2, 1.11.0, 1.12.0, 1.12.1, 1.13.0, 1.13.1, 2.0.0) ERROR: No matching distribution found for torch==1.9.0+cu111

I also try install torch using conda, but it seems not work at the implementation stage.

Any suggestions are appreciated.

tankwin08 avatar Apr 16 '23 23:04 tankwin08

Hi tankwin08:

Follow previous install guide https://github.com/showlab/Image2Paragraph/blob/4c7f4436c02f5e9bc878fda0e352aa42995b3e07/install.sh

FingerRec avatar Apr 17 '23 02:04 FingerRec

Thanks. i did the same thing in previous trial. I tried your instruction, it give me the same error.

tankwin08 avatar Apr 17 '23 02:04 tankwin08

How about "pip install --upgrade pip". Because 1.9.0+cu111 is indeed in https://download.pytorch.org/whl/torch_stable.html, as below
image

Or what's your system? I only try on linux

If you have no GPU available, just install torch==1.9.0 rather than torch==1.9.0+cu111

FingerRec avatar Apr 17 '23 02:04 FingerRec

maybe that's the reason, i am using terminal of mac. FYI. update pip did not work.

tankwin08 avatar Apr 17 '23 02:04 tankwin08

Yes, the Mac install is different from linux. Look this page for instruction. https://pytorch.org

FingerRec avatar Apr 17 '23 03:04 FingerRec

@tankwin08 were you able to find the problem / workaround?

yahorbarkouski avatar Apr 21 '23 14:04 yahorbarkouski

@yahorbarkouski for only installing torch, you can try conda install pytorch torchvision torchaudio -c pytorch, it works for me in python 3.8 with terminal

tankwin08 avatar Apr 21 '23 15:04 tankwin08

@tankwin08 How did you solve the problem? Can you share it? Thanks!

jiangxh18 avatar Jul 11 '23 15:07 jiangxh18