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:
@@ -203,12 +203,12 @@ pub fn run_pipx_update(run_type: RunType) -> Result<()> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn run_pip3_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");
|
print_separator("pip3");
|
||||||
|
|
||||||
run_type
|
run_type
|
||||||
.execute(&pip3)
|
.execute(&python3)
|
||||||
.args(&["install", "--upgrade", "--user", "pip"])
|
.args(&["-m", "pip", "install", "--upgrade", "--user", "pip"])
|
||||||
.check_run()
|
.check_run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user