From e5259225630409a935f65a7f6cc56a41e7911daf Mon Sep 17 00:00:00 2001 From: Florian Rau Date: Wed, 1 Nov 2023 13:35:52 +0000 Subject: [PATCH] make sure to call pip in the correct directory --- iblrig/version_management.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iblrig/version_management.py b/iblrig/version_management.py index d92754ebd..033886f03 100644 --- a/iblrig/version_management.py +++ b/iblrig/version_management.py @@ -328,6 +328,6 @@ def upgrade() -> int: check_call(["git", "reset", "--hard"], cwd=BASE_DIR) check_call(["git", "pull", "--tags"], cwd=BASE_DIR) - check_call(["pip", "install", "-U", "pip"]) - check_call(["pip", "install", "-U", "-e", "."]) + check_call([sys.executable, "-m", "pip", "install", "-U", "pip"], cwd=BASE_DIR) + check_call([sys.executable, "-m", "pip", "install", "-U", "-e", BASE_DIR], cwd=BASE_DIR) return 0