From 33089ebbe965e44a0b185fc8d93415c7c951711d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 9 Jun 2021 09:53:31 +0200 Subject: [PATCH] avoid the warning 'WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.' (#729) --- src/steps/generic.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/steps/generic.rs b/src/steps/generic.rs index 3b110e64..e7f06b04 100644 --- a/src/steps/generic.rs +++ b/src/steps/generic.rs @@ -203,12 +203,12 @@ pub fn run_pipx_update(run_type: RunType) -> Result<()> { } pub fn run_pip3_update(run_type: RunType) -> Result<()> { - let pip3 = utils::require("pip3")?; + let python3 = utils::require("python3")?; print_separator("pip3"); run_type - .execute(&pip3) - .args(&["install", "--upgrade", "--user", "pip"]) + .execute(&python3) + .args(&["-m", "pip", "install", "--upgrade", "--user", "pip"]) .check_run() }