当前位置: 首页 > 图灵资讯 > 行业资讯> 如何卸载残余python?

如何卸载残余python?

发布时间:2026-01-27 21:46:39

卸载残余python的方法(Mac卸载):

查看python版本

$python3--version
Python3.7.1

删除Python 3.7 框架

$ls/Library/Frameworks/Python.framework/Versions/
3.7
$sudorm-rf/Library/Frameworks/Python.framework/Versions/3.7

删除python 3.7 应用目录:

$cd/Applications
$sudorm-rfPython\3.7/#Python3.7存在空格

在launchpad中查看python3的IDLE已被删除

删除/usr/local/bin Python3.7. 的连接:

$cd/usr/local/bin/
$ls-l/usr/local/bin
$rmpython3.7

相关文件和链接 #Python3.7相关文件和链接需要你自行确认

Python3.7 最好删除相应的文件和链接;无法确认的文件和链接将在网上搜索bing.

删除python的环境路径

$vi~/.bash_profile

删除Python3.7设置的环境路径。

确认python已被删除

$python3
-bash:python3:commandnotfound

请关注Python自学网了解更多Python知识。

相关文章

如何卸载残余python?

如何卸载残余python?

2026-01-27
Python怎么取出列表中的相邻元素?

Python怎么取出列表中的相邻元素?

2026-01-26
python怎么求矩阵的逆?

python怎么求矩阵的逆?

2026-01-26
python怎么清除窗口计算历史?

python怎么清除窗口计算历史?

2026-01-26
如何让python成为cmd中的命令?

如何让python成为cmd中的命令?

2026-01-26
python如何去除字符串首字母?

python如何去除字符串首字母?

2026-01-26