Skip to content

Commit 8fc0e17

Browse files
committed
try in a venv
1 parent 7c2a485 commit 8fc0e17

File tree

1 file changed

+4
-1
lines changed
  • llama-index-python-vectorstore

1 file changed

+4
-1
lines changed

llama-index-python-vectorstore/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ $PYTHON_BINARY -c "import sys; print(f'Python version found: {sys.version_info}'
1212
# shellcheck disable=SC2164
1313
cd llama-index-integrations/vector_stores/llama-index-vector-stores-mongodb
1414

15-
# Install Poetry into base python
15+
# Install Poetry
16+
$PYTHON_BINARY -m venv .venv
17+
. .venv/bin/activate
18+
PYTHON_BINARY=$(which python)
1619
$PYTHON_BINARY -m pip install -U pip poetry
1720
# Create a package specific poetry environment
1821
$PYTHON_BINARY -m poetry env use $PYTHON_BINARY

0 commit comments

Comments
 (0)