File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 66REPO_URL=" https://github.com/OpenInterpreter/open-interpreter.git"
77BRANCH=" development"
88PYTHON_VERSION=" 3.12"
9+ VENV_DIR=" $HOME /.openinterpreter/venv"
910
1011# Install uv if not present
1112if ! command -v uv > /dev/null 2>&1 ; then
@@ -25,11 +26,19 @@ uv python install "$PYTHON_VERSION"
2526# Create virtual environment
2627echo " Creating virtual environment..."
2728mkdir -p " $HOME /.openinterpreter"
28- uv venv --python " $PYTHON_VERSION " " $HOME /.openinterpreter/venv "
29+ uv venv --python " $PYTHON_VERSION " " $VENV_DIR "
2930
3031# Install package into the venv
3132echo " Installing package..."
32- uv pip install --python " $HOME /.openinterpreter/venv/bin/python" " git+$REPO_URL @$BRANCH "
33+ uv pip install --python " $VENV_DIR /bin/python" " git+$REPO_URL @$BRANCH "
34+
35+ # Update PATH for current session and future sessions
36+ export PATH=" $VENV_DIR /bin:$PATH "
37+ SHELL_CONFIG=" $HOME /.bashrc"
38+ if [[ " $SHELL " == * " zsh" * ]]; then
39+ SHELL_CONFIG=" $HOME /.zshrc"
40+ fi
41+ echo " export PATH=\" $VENV_DIR /bin:\$ PATH\" " >> " $SHELL_CONFIG "
3342
3443echo
3544echo " Installation complete!"
You can’t perform that action at this time.
0 commit comments