ragflow icon indicating copy to clipboard operation
ragflow copied to clipboard

[Bug]: pip install ERROR

Open Old-Lane opened this issue 1 year ago • 5 comments

Is there an existing issue for the same bug?

  • [X] I have checked the existing issues.

Branch name

main

Commit ID

c3b2a1

Other environment information

Linux

Actual behavior

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 21.11 Requires-Python >=3.5,<3.10; 22.1 Requires-Python >=3.5,<3.10; 22.10.0 Requires-Python >=3.5,<3.11; 22.11.0 Requires-Python >=3.5,<3.11; 22.12.0 Requires-Python >=3.5,<3.11; 22.4.0 Requires-Python >=3.5,<3.10; 22.6.0 Requires-Python >=3.5,<3.11; 22.7.0 Requires-Python >=3.5,<3.11; 22.8.0 Requires-Python >=3.5,<3.11; 22.9.0 Requires-Python >=3.5,<3.11; 23.1.0 Requires-Python >=3.5,<3.11; 23.2.0 Requires-Python >=3.5,<3.11; 23.3.0 Requires-Python >=3.5,<3.11; 23.4.0 Requires-Python >=3.5,<3.11
ERROR: Could not find a version that satisfies the requirement onnxruntime==1.17.3 (from versions: 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3)
ERROR: No matching distribution found for onnxruntime==1.17.3

Expected behavior

pip install success

Steps to reproduce

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r requirements.txt
pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ./requirements.txt

Additional information

use python 3.11.0

ERROR: Ignored the following versions that require a different python version: 1.21.2 Requires-Python >=3.7,<3.11; 1.21.3 Requires-Python >=3.7,<3.11; 1.21.4 Requires-Python >=3.7,<3.11; 1.21.5 Requires-Python >=3.7,<3.11; 1.21.6 Requires-Python >=3.7,<3.11; 21.11 Requires-Python >=3.5,<3.10; 22.1 Requires-Python >=3.5,<3.10; 22.10.0 Requires-Python >=3.5,<3.11; 22.11.0 Requires-Python >=3.5,<3.11; 22.12.0 Requires-Python >=3.5,<3.11; 22.4.0 Requires-Python >=3.5,<3.10; 22.6.0 Requires-Python >=3.5,<3.11; 22.7.0 Requires-Python >=3.5,<3.11; 22.8.0 Requires-Python >=3.5,<3.11; 22.9.0 Requires-Python >=3.5,<3.11; 23.1.0 Requires-Python >=3.5,<3.11; 23.2.0 Requires-Python >=3.5,<3.11; 23.3.0 Requires-Python >=3.5,<3.11; 23.4.0 Requires-Python >=3.5,<3.11
ERROR: Could not find a version that satisfies the requirement onnxruntime==1.17.3 (from versions: 1.15.0, 1.15.1, 1.16.0, 1.16.1, 1.16.2, 1.16.3)
ERROR: No matching distribution found for onnxruntime==1.17.3

Old-Lane avatar Aug 19 '24 09:08 Old-Lane

I also have the problem. The problem is that your PC uses arm chip that did not support the onnxruntime==1.17.3 in your python version in linux. https://github.com/microsoft/onnxruntime/issues/11037

learnerLj avatar Aug 19 '24 10:08 learnerLj

What about removing the version numbers?

KevinHuSh avatar Aug 19 '24 11:08 KevinHuSh

I’m also at the stage of installing required packages. If your system is based on the ARM architecture, you can replace requirements.txt with requirements_arm.txt which exists in the same directory and remove all package version numbers (for caution, I saved it as requirements_arm_v2.txt). So far, this approach has worked without any problems.

pip install -r requirements_arm_v2.txt

For installing onnxruntime, you can download the required version from HERE.

nab-iak avatar Aug 23 '24 09:08 nab-iak

更新你的glibc,是glibc底层版本太老了,要用root权限,提前备份数据,更新这玩意容易把系统搞崩,已经替你踩坑了。记得备份数据

CharlieKoo avatar Sep 03 '24 04:09 CharlieKoo

我也遇到了相同问题,我是通过下面方法解决的: 1、conda install -c conda-forge onnxruntime=1.17.3 2、删除requirement.txt里面的onnxruntime项 注意:我在SUSE Linux Enterprise Server 12 SP5系统是这么解决的,但是centOS7系统用同样方法却不好用,我在网上查的好像onnxruntime=1.17.3不再支持centOS7了

I also encountered the same problem, and I solved it through the following methods:

  1. conda install -c conda-forge onnxruntime=1.17.3
  2. Remove the onnxruntime item from the requirement. txt file Note: This is how I solved the problem on the SUSE Linux Enterprise Server 12 SP5 system, but the same method is not working on the centOS7 system. I found online it seems that onnxrruntime=1.17.3 no longer supports centOS7

MIhappen avatar Sep 05 '24 10:09 MIhappen

We've replaced pip with poetry on the main branch.

yuzhichang avatar Sep 28 '24 09:09 yuzhichang