Skip to content

Commit

Permalink
Make sure pip is installed before updating in case install was done i…
Browse files Browse the repository at this point in the history
…nitially with uv
  • Loading branch information
elesiuta committed Jan 15, 2025
1 parent d2cba7b commit 980fec0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions neurons/utils/auto_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ def attempt_packages_update(self):

python_executable = sys.executable
# trunk-ignore(bandit/B603)
subprocess.check_call(
[
python_executable,
"-m",
"ensurepip",
],
timeout=60,
)
subprocess.check_call(
[
python_executable,
Expand Down

0 comments on commit 980fec0

Please sign in to comment.