宝塔安装python版本和linux服务器版本不一致

查看所有安装python版本。可以看到有btpython映射到了python3.7,所以带“bt”的就是宝塔安装的python版本。
后面就是用btpython、btpip安装包

 # ls -al /usr/bin | grep python
lrwxrwxrwx    1 root root        37 Sep 16  2020 btpython -> /www/server/panel/pyenv/bin/python3.7
lrwxrwxrwx    1 root root         7 Sep 14  2020 python -> python2
lrwxrwxrwx    1 root root         9 Sep 14  2020 python2 -> python2.7
-rwxr-xr-x    1 root root      7144 Apr  2  2020 python2.7
-rwxr-xr-x    1 root root      1835 Apr  2  2020 python2.7-config
lrwxrwxrwx    1 root root        16 Sep 14  2020 python2-config -> python2.7-config
lrwxrwxrwx    1 root root        14 Sep 14  2020 python-config -> python2-config
 # ls -al /usr/bin | grep pip
lrwxrwxrwx    1 root root        34 Sep 16  2020 btpip -> /www/server/panel/pyenv/bin/pip3.7
-rwxr-xr-x.   1 root root      2291 Jul 31  2015 lesspipe.sh
-rwxr-xr-x    1 root root       223 Oct 26 17:07 pip
-rwxr-xr-x    1 root root       223 Oct 26 17:07 pip2
-rwxr-xr-x    1 root root       223 Oct 26 17:07 pip2.7

你可能感兴趣的:(宝塔,Python,python)