linux卸载python3.6,当python3.6位于/usr/local/bin/python3.6时,如何在ubuntu上卸载它

所以我默认的python3版本是3.7.5which python3

/usr/bin/python3

现在我的python3.6安装在:which python3.6

/usr/local/bin/python3.6

如果我这样卸载它:sudo apt-get remove --purge python3.6

Reading package lists... Done

Building dependency tree

Reading state information... Done

Note, selecting 'python3.6-2to3' for regex 'python3.6'

Note, selecting 'libpython3.6-stdlib' for regex 'python3.6'

Note, selecting 'python3.6-rpy2' for regex 'python3.6'

Package 'libpython3.6-stdlib' is not installed, so not removed

Package 'python3.6-2to3' is not installed, so not removed

0 upgraded, 0 newly installed, 0 to remove and 9 not upgraded.

如果是这样的话:sudo apt-get remove --purge /usr/local/bin/python3.6

Reading package lists... Done

E: Unsupported file /usr/local/bin/python3.6 given on commandline

你可能感兴趣的:(linux卸载python3.6,当python3.6位于/usr/local/bin/python3.6时,如何在ubuntu上卸载它)