Skip to content

Commit e99a36e

Browse files
committed
在 Python 安装过程中添加 pipx ensurepath 以确保 pipx 路径正确
1 parent fc21228 commit e99a36e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

f8x

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2579,6 +2579,7 @@ pyenv_Install(){
25792579
esac
25802580

25812581
Install_Switch "pipx"
2582+
pipx ensurepath
25822583
fi
25832584
fi
25842585

@@ -2593,6 +2594,7 @@ Python3_def_Install(){
25932594
Install_Switch "python3-devel"
25942595
Install_Switch "python3-pip"
25952596
Install_Switch "pipx"
2597+
pipx ensurepath
25962598
python3 -m pip install --upgrade pip > /dev/null 2>&1 && Echo_INFOR "Updated python3-pip" || Echo_ERROR "Update python3-pip failed"
25972599

25982600
Install_Switch4 "setuptools"
@@ -2605,6 +2607,7 @@ Python3_def_Install(){
26052607
Install_Switch "python3-venv"
26062608
Install_Switch "python3-distutils"
26072609
Install_Switch "pipx"
2610+
pipx ensurepath
26082611
python3 -m pip install --upgrade pip > /dev/null 2>&1 && Echo_INFOR "Updated python3-pip" || Echo_ERROR "Update python3-pip failed"
26092612
;;
26102613
*"Ubuntu"*)
@@ -2614,6 +2617,7 @@ Python3_def_Install(){
26142617
Install_Switch "python3-venv"
26152618
Install_Switch "python3-distutils"
26162619
Install_Switch "pipx"
2620+
pipx ensurepath
26172621
case $Linux_Version_Num in
26182622
"16.04")
26192623
mkdir -p /tmp/get-pip && cd /tmp/get-pip && rm -rf get-pip.py && $Proxy_OK wget https://bootstrap.pypa.io/pip/3.5/get-pip.py > /dev/null 2>&1

0 commit comments

Comments
 (0)