ModuleNotFoundError: нет модуля с именем «цепочки». ⇐ Python

Программы на Python
Anonymous
ModuleNotFoundError: нет модуля с именем «цепочки».

Сообщение Anonymous »

Я использую langgraph в своем GoogleColab. Я пытаюсь импортировать Generate_chain и Reflection_chain. Так я и написал

Код: Выделить всё

from chains import generate_chain, reflection_chain
Но выдает ошибку

Код: Выделить всё

ModuleNotFoundError: No module named 'chains'
Поэтому я попытался установить цепочки, используя следующую команду

Код: Выделить всё

!pip install chains
Но выдает ошибку

Код: Выделить всё

   Collecting chains
Using cached chains-0.2.0-py2.py3-none-any.whl.metadata (5.7 kB)
Collecting dpkt (from chains)
Using cached dpkt-1.9.8-py3-none-any.whl.metadata (1.7 kB)
Collecting netifaces (from chains)
Using cached netifaces-0.11.0.tar.gz (30 kB)
Preparing metadata (setup.py) ... done
Collecting pcapy (from chains)
Using cached pcapy-0.11.4.tar.gz (37 kB)
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Можете ли вы помочь мне решить эту проблему?

Подробнее здесь: https://stackoverflow.com/questions/790 ... med-chains

Вернуться в «Python»