Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About run pip install something by interpreter #272

Closed
Hanochhu opened this issue Sep 11, 2023 · 8 comments
Closed

About run pip install something by interpreter #272

Hanochhu opened this issue Sep 11, 2023 · 8 comments
Labels
Bug Something isn't working

Comments

@Hanochhu
Copy link

Describe the bug

the interpreter can't run instruction like pip install ... but I have seen others did that

Reproduce

1.tpye "analyze temp.xlsx and draw picture "
2.when it run "pip install matplotlib"

Expected behavior

interpreter run "pip install something" directly without my typing

Screenshots

image

Open Interpreter version

0.1.1

Python version

3.11.4

Operating System name and version

macOS13

Additional context

No response

@Hanochhu Hanochhu added the Bug Something isn't working label Sep 11, 2023
@TanmayDoesAI
Copy link
Collaborator

please update to the newer version, using pip install -U open-interpreter the prompt file was changed in the update, it should be fixed by that!

@cppong1117
Copy link

i try to update but still can not auto setup the pip

@Hanochhu
Copy link
Author

please update to the newer version, using pip install -U open-interpreter the prompt file was changed in the update, it should be fixed by that!

have upadated to 0.1.3 but still can't

@movitecc
Copy link

I alse met this issue, manjaro linux, OI 0.1.3 version.

@jordanbtucker
Copy link
Collaborator

Seems like the model thinks you're in a Jupyter Notebook because of the !. You can try telling it you're not in one and see how it responds. Unfortunately, the local models aren't as smart as GPT yet.

@Hanochhu
Copy link
Author

Seems like the model thinks you're in a Jupyter Notebook because of the !. You can try telling it you're not in one and see how it responds. Unfortunately, the local models aren't as smart as GPT yet.

I'm using gpt3.5 api as the base model of interpreter, I think it's most accessible and powerful api for most people. And it should have capacity to give right instructions, I tried in chatgpt web.

And I noticed that you had put a sentence in system_message Never use (!) when running commands.
Why did't work by the way

@jordanbtucker
Copy link
Collaborator

I don't think that message is clear enough. Probably it needs a negative example, like:

Do not prefix commands with "!". For example, don't provide the command !pip install, instead provide the command pip install.

@ericrallen
Copy link
Collaborator

I'm going to close this one as completed as I believe the current code has extra safeguards to strip the ! from the !pip install command in case the model tries to call pip like it's in a Jupyter notebook.

Please reopen if you still experience the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants