mac 下删除 python 2.7
2024-08-27 17:31:53
删除 mac os 自带的 python 2.7, 以方便安装 python 3 的虚拟环境。
- 删除 Python 2.7 framework
sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
- 删除 Python 2.7 applications directory
sudo rm -rf "/Applications/Python 2.7"
- 删除指向
/usr/local/bin 的 python 版本链接
ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7'
- 然后运行一下刚才的删除命令
cd /usr/local/bin/ ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' | awk '{print $9}' | tr -d @ | xargs rm
千万不可以在资料库中直接删除 python.
最新文章
- IIS发布WCF服务项目之本地
- AngularJS入门心得1——directive和controller如何通信
- CodeForces - 416A (判断大于小于等于 模拟题)
- Nginx 报错: nginx: [error] open() ";/usr/local/nginx/logs/nginx.pid"; failed (2: No such file or directory) 的解决方法
- mybatis 的 resulttype 和resultMap
- Git工作常用
- Xcode中c++&;Object-C混编,详细介绍如何在cocos2dx中访问object函数以及Apple Api
- Cannot Create Supplier Site (Address) (文档 ID 1069032.1)
- Ratchet(WebSockets for PHP)的官方TUTORIALS 的实践
- 4. SQL Server数据库状态监控 - 作业状态
- Spring MVC 以.html为后缀名访问获取数据,报406 Not Acceptable错误。
- MyBatis 详解(一对一,一对多,多对多)
- sublime 设置新建文件自动添加author(作者)等文件头信息
- uvalive 3213 Ancient Cipher
- [MSSQL]SQL Server里面导出SQL脚本(表数据的insert语句)(转)
- JAVA时间Date工具类
- git commit之后,想撤销commit
- 文件上传allowedTypes和文件下载contentType(mimeType)
- [日常] Go语言圣经-GIF动画练习语法
- 终端利用ssh登录远程服务器
热门文章
- Servlet 使用介绍(1)
- centos7.6使用openssl生成CA签署的证书个人实验笔记
- Ovirt 简单配置
- 【python爬虫】cookie &; session
- IDEA2019 Maven项目出现Unable to import maven project: See logs for details解决办法
- DevExpress中TreeList树样式调整
- golang数据结构之用循环链表解决约瑟夫环问题
- Tensorflow.nn 核心模块详解
- python做中学(七)ord() 函数
- Vscode 打字特效插件Power Mode安装使用说明