Jak użyć asystenta AI do instalacji paczki?

0

Cześć,

czy ktoś zetknął się z takim problemem:

(wszystko co poniżej to konwersacja w terminalu z asystentem AI)

 pip install python-docx pdfkit

  **Would you like to run this code? (y/n)** - pytanie OI

  y


  pip install python-docx pdfkit
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Scripts\interpreter.exe\__main__.py", line 7, in <module>  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\site-packages\interpreter\interpreter.py", line 131, in cli
    cli(self)
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\site-packages\interpreter\cli.py", line 207, in cli
    interpreter.chat()
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\site-packages\interpreter\interpreter.py", line 412, in chat
    self.respond()
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\site-packages\interpreter\interpreter.py", line 924, in respond
    code_interpreter.run()
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\site-packages\interpreter\code_interpreter.py", line 201, in run
    code = wrap_in_try_except(code)
           ^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\site-packages\interpreter\code_interpreter.py", line 464, in wrap_in_try_except
    parsed_code = ast.parse(code)
                  ^^^^^^^^^^^^^^^
  File "C:\Users\jwiec\AppData\Local\Programs\Python\Python311\Lib\ast.py", line 50, in parse
    return compile(source, filename, mode, flags,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<unknown>", line 2
    pip install python-docx pdfkit
        ^^^^^^^
SyntaxError: invalid syntax
0

Co to za wersja PIPa i biblioteki?

0

pip 23.2.1

python-docx 0.8.11

pdfkit 1.0.0

Python 3.11.5

dodatkow git do Open Interpretera:

https://github.com/KillianLucas/open-interpreter/tree/main/interpreter

0

wspierane wersje pythona: https://python-docx.readthedocs.io/en/latest/user/install.html#install - Python 2.6, 2.7, 3.3, or 3.4

0

Rozumiem że potrzebuje niższej wersji pythona do obsługi tych bibliotek? Problem w tym że Open Interpreter generuje sam kod w pythonie i próbuje go odpalić i tu pojawia się błąd. Nawet przy jego próbę doinstalowania bibliotek tez pojawia się błąd. Ciekawe jest to że jeżeli sam "ręcznie" przez pip instaluje te biblioteki to da się to zrobić a nawet uruchomić kod, który został stworzony

Nie mam dużego doświadczania w kodowaniu ale wydaje się, że to egzekucja kodu przez Opein Interpreter jest problematyczna.

Ogólnie program jest świetny, działa na lokalnych LLM-ach jak i z GPT 3.5 i 4.0 ale na moim sprzęcie generuje taki błąd.

0

Noe nam tego narzedzia ale bym zaczął od próby uzycia odpowiedniej wersji

0

Ok, dzięki

0

pojawiło się jeszcze takie cos:

Installing collected packages: six
Attempting uninstall: six
Found existing installation: six 1.16.0
Uninstalling six-1.16.0:
Successfully uninstalled six-1.16.0
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
open-interpreter 0.1.4 requires six<2.0.0,>=1.16.0, but you have six 1.12.0 which is incompatible.
Successfully installed six-1.12.0

0

oraz:

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
textract 1.6.5 requires six~=1.12.0, but you have six 1.16.0 which is incompatible.

0

po instalacji six~=1.12.0

DEPRECATION: textract 1.6.5 has a non-standard dependency specifier extract-msg<=0.29.*. pip 23.3 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of textract or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063

1 użytkowników online, w tym zalogowanych: 0, gości: 1