删除 mac os 自带的 python 2.7, 以方便安装 python 3 的虚拟环境。

  1. 删除 Python 2.7 framework  
    1. sudo rm -rf /Library/Frameworks/Python.framework/Versions/2.7
  2. 删除 Python 2.7 applications directory
    1. sudo rm -rf "/Applications/Python 2.7"
  3. 删除指向 /usr/local/bin 的 python 版本链接
    1. ls -l /usr/local/bin | grep '../Library/Frameworks/Python.framework/Versions/2.7' 
  4. 然后运行一下刚才的删除命令
    1. 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.

最新文章

  1. IIS发布WCF服务项目之本地
  2. AngularJS入门心得1——directive和controller如何通信
  3. CodeForces - 416A (判断大于小于等于 模拟题)
  4. Nginx 报错: nginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory) 的解决方法
  5. mybatis 的 resulttype 和resultMap
  6. Git工作常用
  7. Xcode中c++&Object-C混编,详细介绍如何在cocos2dx中访问object函数以及Apple Api
  8. Cannot Create Supplier Site (Address) (文档 ID 1069032.1)
  9. Ratchet(WebSockets for PHP)的官方TUTORIALS 的实践
  10. 4. SQL Server数据库状态监控 - 作业状态
  11. Spring MVC 以.html为后缀名访问获取数据,报406 Not Acceptable错误。
  12. MyBatis 详解(一对一,一对多,多对多)
  13. sublime 设置新建文件自动添加author(作者)等文件头信息
  14. uvalive 3213 Ancient Cipher
  15. [MSSQL]SQL Server里面导出SQL脚本(表数据的insert语句)(转)
  16. JAVA时间Date工具类
  17. git commit之后,想撤销commit
  18. 文件上传allowedTypes和文件下载contentType(mimeType)
  19. [日常] Go语言圣经-GIF动画练习语法
  20. 终端利用ssh登录远程服务器

热门文章

  1. Servlet 使用介绍(1)
  2. centos7.6使用openssl生成CA签署的证书个人实验笔记
  3. Ovirt 简单配置
  4. 【python爬虫】cookie & session
  5. IDEA2019 Maven项目出现Unable to import maven project: See logs for details解决办法
  6. DevExpress中TreeList树样式调整
  7. golang数据结构之用循环链表解决约瑟夫环问题
  8. Tensorflow.nn 核心模块详解
  9. python做中学(七)ord() 函数
  10. Vscode 打字特效插件Power Mode安装使用说明