deep-diver/LLM-As-Chatbot

ERROR: No matching distribution found for transformers[sentencepiece]<4.30.0,>=4.26.0

javierxio opened this issue · 1 comments

Hey guys,

I am getting stuck here when running pip install -r requirements.txt

Collecting pydantic (from gradio->-r requirements.txt (line 8))
  Downloading pydantic-1.10.9-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 62.9 MB/s eta 0:00:00
Collecting pydub (from gradio->-r requirements.txt (line 8))
  Using cached pydub-0.25.1-py2.py3-none-any.whl (32 kB)
Collecting pygments>=2.12.0 (from gradio->-r requirements.txt (line 8))
  Using cached Pygments-2.15.1-py3-none-any.whl (1.1 MB)
Collecting python-multipart (from gradio->-r requirements.txt (line 8))
  Using cached python_multipart-0.0.6-py3-none-any.whl (45 kB)
Collecting semantic-version (from gradio->-r requirements.txt (line 8))
  Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting uvicorn>=0.14.0 (from gradio->-r requirements.txt (line 8))
  Using cached uvicorn-0.22.0-py3-none-any.whl (58 kB)
Collecting websockets>=10.0 (from gradio->-r requirements.txt (line 8))
  Downloading websockets-11.0.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (129 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 129.7/129.7 kB 43.4 MB/s eta 0:00:00
Collecting coloredlogs (from optimum==1.8.8.dev0->-r requirements.txt (line 10))
  Using cached coloredlogs-15.0.1-py2.py3-none-any.whl (46 kB)
INFO: pip is looking at multiple versions of optimum to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement transformers[sentencepiece]<4.30.0,>=4.26.0 (from optimum) (from versions: 0.1, 2.0.0, 2.1.0, 2.1.1, 2.2.0, 2.2.1, 2.2.2, 2.3.0, 2.4.0, 2.4.1, 2.5.0, 2.5.1, 2.6.0, 2.7.0, 2.8.0, 2.9.0, 2.9.1, 2.10.0, 2.11.0, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.2.0, 3.3.0, 3.3.1, 3.4.0, 3.5.0, 3.5.1, 4.0.0rc1, 4.0.0, 4.0.1, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.2.2, 4.3.0rc1, 4.3.0, 4.3.1, 4.3.2, 4.3.3, 4.4.0, 4.4.1, 4.4.2, 4.5.0, 4.5.1, 4.6.0, 4.6.1, 4.7.0, 4.8.0, 4.8.1, 4.8.2, 4.9.0, 4.9.1, 4.9.2, 4.10.0, 4.10.1, 4.10.2, 4.10.3, 4.11.0, 4.11.1, 4.11.2, 4.11.3, 4.12.0, 4.12.1, 4.12.2, 4.12.3, 4.12.4, 4.12.5, 4.13.0, 4.14.0, 4.14.1, 4.15.0, 4.16.0, 4.16.1, 4.16.2, 4.17.0, 4.18.0, 4.19.0, 4.19.1, 4.19.2, 4.19.3, 4.19.4, 4.20.0, 4.20.1, 4.21.0, 4.21.1, 4.21.2, 4.21.3, 4.22.0, 4.22.1, 4.22.2, 4.23.0, 4.23.1, 4.24.0, 4.25.0, 4.25.1, 4.26.0, 4.26.1, 4.27.0, 4.27.1, 4.27.2, 4.27.3, 4.27.4, 4.28.0, 4.28.1, 4.29.0, 4.29.1, 4.29.2, 4.30.0, 4.30.1)
ERROR: No matching distribution found for transformers[sentencepiece]<4.30.0,>=4.26.0

I've already tried debugging for about an hour. First I upgraded to Python 3.11 but it gave me error messages, then I installed/downgraded to Python 3.10 and still had errors, finally, I installed/downgraded to Python 3.9.

I have tried searching stackoverflow but no help. Thanks.

Fixed the issue by changing requirements file:

before:

git+https://github.com/huggingface/optimum.git

after:

optimum
#git+https://github.com/huggingface/optimum.git

OK to close.

Related link:

https://huggingface.co/docs/optimum/onnxruntime/usage_guides/trainer