mac卸载python_工具安装-Mac 卸载python3

1.终端版本

$ python3

2.删除框架

$ ls /Library/Frameworks/Python.framework/Versions/

强制删除

$ sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.7

3.删除目录

$ cd /Applications

$ sudo rm -rf Python\ 3.7/

查看launchpad中python3的IDLE就被删除

4.删除连接

$ cd /usr/local/bin/

$ ls -l /usr/local/bin

$ rm Python3.7相关的文件和链接

? bin rm pydoc3

? bin rm pydoc3.7

? bin rm python3

? bin rm python3-config

? bin rm python3.7

? bin rm python3.7-config

? bin rm python3.7m

? bin rm python3.7m-config

? bin rm pyvenv

? bin rm pyvenv-3.7

? bin rm pip3

? bin rm pip3.7

? bin rm 2to3

? bin rm 2to3-3.7

? bin rm easy_install-3.7

? bin rm idle3

? bin rm idle3.7

5.删除环境路径

$ vi ~/.bash_profile

删除自己设置的

6.查看版本

$ python3

已删除

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值