我正在尝试从计算机中删除Python 2.7。按照另一篇文章中的说明删除所有pip包,我执行了以下操作:
sudo pip freeze | grep -v "^-e" | xargs sudo pip uninstall -y
虽然这删除了一些软件包,但我得到以下消息:
Not uninstalling rpi.gpio at /usr/lib/python2.7/dist-packages, outside environment /usr
Can't uninstall 'RPi.GPIO'. No files were found to uninstall.
Q1:在卸载Python 2.7之前我需要删除所有这些软件包吗?
Q2:如果可以,我该怎么办?