zoukankan      html  css  js  c++  java
  • 工具安装-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

    已删除

  • 相关阅读:
    回眸
    随想
    小序,良感
    润思
    网络爬虫的 “ 黑洞 ”
    Python——文件操作详解
    RandomAccessFile详解
    JSON数据解析及gson.jar包
    BigInteger详解
    Java爬虫——B站弹幕爬取
  • 原文地址:https://www.cnblogs.com/zhangshan33/p/12580375.html
Copyright © 2011-2022 走看看