avoid the warning 'WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.' (#729)

This commit is contained in:
Alex
2021-06-09 09:53:31 +02:00
committed by GitHub
parent f39899c3ff
commit 33089ebbe9

View File

@@ -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()
}