记一次误删系统文件

不小心删除了/System/Library/Frameworks/Python.framework/Versions/2.7/的内容,之后每次使用cd命令都会提示.

1
2
$ cd
python: posix_spawn: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: No such file or directoryr

google了一下,找到一个文件包,下载下来拷贝进去就OK了!

地址:https://stackoverflow.com/questions/10212270/python-asks-for-older-paths-on-mac-after-deleting-duplicate-python-installation

stackoverflow可能下载会比较慢,我在百度网盘也备份了一份,留给像我这样的手残党😂

链接:https://pan.baidu.com/s/1rgXQ5k4mxwVWZIfzUZC5uQ 密码:rf5n