Skip to content

Commit 539fe98

Browse files
committed
Venv
1 parent 0f41a14 commit 539fe98

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

installers/new-installer.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ fi
2222
echo "Installing Python $PYTHON_VERSION..."
2323
uv python install "$PYTHON_VERSION"
2424

25-
# Direct installation using uv with specific Python version
25+
# Create virtual environment
26+
echo "Creating virtual environment..."
27+
mkdir -p "$HOME/.openinterpreter"
28+
uv venv --python "$PYTHON_VERSION" "$HOME/.openinterpreter/venv"
29+
30+
# Install package into the venv
2631
echo "Installing package..."
27-
uv pip install --system --python "$PYTHON_VERSION" "git+$REPO_URL@$BRANCH"
32+
uv pip install --python "$HOME/.openinterpreter/venv/bin/python" "git+$REPO_URL@$BRANCH"
2833

2934
echo
3035
echo "Installation complete!"

0 commit comments

Comments
 (0)