mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-26 14:34:59 +00:00
fix: Ensure pip is available before installation
This commit is contained in:
parent
a2d345fe3d
commit
f16110717b
1 changed files with 7 additions and 0 deletions
|
@ -211,6 +211,13 @@ def run_install(cmd):
|
||||||
print()
|
print()
|
||||||
print("Installing:", printable_shell_command(cmd))
|
print("Installing:", printable_shell_command(cmd))
|
||||||
|
|
||||||
|
# First ensure pip is available
|
||||||
|
ensurepip_cmd = [sys.executable, "-m", "ensurepip", "--upgrade"]
|
||||||
|
try:
|
||||||
|
subprocess.run(ensurepip_cmd, capture_output=True, check=False)
|
||||||
|
except Exception:
|
||||||
|
pass # Continue even if ensurepip fails
|
||||||
|
|
||||||
try:
|
try:
|
||||||
output = []
|
output = []
|
||||||
process = subprocess.Popen(
|
process = subprocess.Popen(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue