From a4168382c13ba34d126dcc596ec8848f04a97881 Mon Sep 17 00:00:00 2001 From: adator85 <85586985+adator85@users.noreply.github.com> Date: Tue, 2 Jan 2024 18:30:21 +0100 Subject: [PATCH] Vider le cache de pip --- core/installation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/installation.py b/core/installation.py index 5769787..ac0d957 100644 --- a/core/installation.py +++ b/core/installation.py @@ -53,8 +53,11 @@ class Install: if not do_install: return None + print("===> Vider le cache de pip") + check_call(['pip','cache','purge']) + print("===> Verifier si pip est a jour") - run(['python', '-m', 'pip', 'install', '--upgrade', 'pip']) + check_call(['python', '-m', 'pip', 'install', '--upgrade', 'pip']) if find_spec('greenlet') is None: check_call(['pip','install', '--only-binary', ':all:', 'greenlet'])