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

Install for Noobs like me on windows 10 #1277

Open
Badashphilosophy opened this issue May 20, 2024 · 4 comments
Open

Install for Noobs like me on windows 10 #1277

Badashphilosophy opened this issue May 20, 2024 · 4 comments

Comments

@Badashphilosophy
Copy link

Badashphilosophy commented May 20, 2024

Describe the bug

there is a little bit of technical knowledge required to install open interpreter.

because im basic i know others are also basic so heres what to do:

install python from python website
https://www.python.org/downloads/

open your command line as administrator by going to start and searching cmd, right click and open as admin, click yes

type:
cd /users

run cmds:
pip install open_interpreter
pip install setup tools
pip install matlib

install visual code c++ redistribution 64x from learn microsoft website
https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

pip install cv2

once finished you can run interpreter with cmd
interpreter

or run this for free llama3 80b from groq, replacing the api key with your own api from groq website, developer tools, create api key
interpreter --vision --os --api_base "https://api.groq.com/openai/v1" --api_key "insert_your_apikey_here" --model "llama3-70b-8192" --context_window 8192

Reproduce

i know this isnt typical format for github but if someone would have done this id have had interpreter installed in 20minutes instead of 3hours

Expected behavior

between installing python and visual code a lot of things dont work as expected so hopefully this makes it easier for you

Screenshots

No response

Open Interpreter version

0.2.4

Python version

3.12.0

Operating System name and version

Windows 10

Additional context

No response

@EyalShemuel
Copy link

import os
import subprocess
import sys

def run_command(command):
try:
subprocess.check_call(command, shell=True)
except subprocess.CalledProcessError as e:
print(f"Error during execution of: {command}")
sys.exit(1)

def install_packages():
packages = [
"open_interpreter",
"setuptools",
"matplotlib",
"opencv-python"
]
for package in packages:
run_command(f"pip install {package}")

def main():
# Step 1: Install Python
# Note: Assuming Python is already installed

# Step 2: Open Command Prompt as Administrator
if os.name != 'nt':
    print("This script is intended to be run on Windows.")
    sys.exit(1)

# Step 3: Navigate to the Users Directory
os.chdir("C:\\Users")

# Step 4: Install Required Python Packages
install_packages()

# Step 5: Install Visual C++ Redistributable
print("Please manually install Visual C++ Redistributable from: https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170")

# Step 6: Instructions for Running Open Interpreter
print("Installation complete. You can run the interpreter using the command: interpreter")
print("To use the interpreter with Llama3 80B from Groq, use the following command:")
print('interpreter --vision --os --api_base "https://api.groq.com/openai/v1" --api_key "your_api_key_here" --model "llama3-70b-8192" --context_window 8192')

if name == "main":
main()

this will fix the problem

@ai-Ev1lC0rP
Copy link

ai-Ev1lC0rP commented May 23, 2024

I would say easier steps would be using Anaconda. Then you have a Venv you can blow away.

technically you can do the same thing in python using python -m venv venv. buuuut going from system to system and OS to OS. Anaconda translates suuuuper easy, and i like how well it containerizes that VENV.

you should be able to copy the text. save it as a .bat and then it would install. i'm going to test it this weekend and see if i can add it to the repo. it's an easy one-click.

@echo off

echo Step 1: Downloading Anaconda...
wget https://repo.anaconda.com/archive/Anaconda3-2024.02-1-Windows-x86_64.exe

echo Step 2: Installing Anaconda...
Anaconda3-2024.02-1-Windows-x86_64.exe
echo Step 3: Creating interpreter environment with Python 3.11...
conda create -n interpreter python=3.11

echo Step 4: Activating interpreter environment...
conda activate interpreter

echo Step 5: Installing open-interpreter...
pip install open-interpreter

echo Step 6: Adding OpenAI API key...
read -p 'Enter your OpenAI API key: ' OPENAI_API_KEY
echo %OPENAI_API_KEY%>openai_api_key.txt

echo Step 7: Installation complete. You can run the interpreter using the command: interpreter
print("To use the interpreter with Llama3 80B from Groq, use the following command:")
print('interpreter --llm-supports-vision --os --api_base "https://api.groq.com/openai/v1" --api_key "your_api_key_here" --model "llama3-70b-8192" --context_window 8192')

ALTERNATIVELY

Look into Pinokio.
They have a helper script that let's you convert ... anything into a Pinokio Computer File. -- open-interpreter as well as the 01 SW but... there has to be a model they use outside of gpt-4o I've notice significant improvements with the new model, however... i swear to god if i have to tell that thing to not shorthand ssh ONE MORE TIME. haha.

I was going to look into that this weekend.

FWIW - - i think the command-R-Plus model on cohere outperforms gpt for this specific use-case. it understands computers... really really well. GPT-4o made the leap to where it's close, but i still think the databricks models are great... and they are opensource.

@Kreijstal
Copy link

can you download command-R-Plus locally?

@ai-Ev1lC0rP
Copy link

Yep.

-You can through Ollama- but MOST hardware wouldn't run it. I've got a 4090 with 24gig of VRAM and 128gig of DDR5 and it's… basically unusable. I'm going to hop over to codestral today to see what performance I get out of it's logic and reasoning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants