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 6
6
REPO_URL=" https://github.com/OpenInterpreter/open-interpreter.git"
7
7
BRANCH=" development"
8
8
PYTHON_VERSION=" 3.12"
9
+ VENV_DIR=" $HOME /.openinterpreter/venv"
9
10
10
11
# Install uv if not present
11
12
if ! command -v uv > /dev/null 2>&1 ; then
@@ -25,11 +26,19 @@ uv python install "$PYTHON_VERSION"
25
26
# Create virtual environment
26
27
echo " Creating virtual environment..."
27
28
mkdir -p " $HOME /.openinterpreter"
28
- uv venv --python " $PYTHON_VERSION " " $HOME /.openinterpreter/venv "
29
+ uv venv --python " $PYTHON_VERSION " " $VENV_DIR "
29
30
30
31
# Install package into the venv
31
32
echo " 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 "
33
42
34
43
echo
35
44
echo " Installation complete!"
You can’t perform that action at this time.
0 commit comments