推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
magine
V2EX  ›  Python

编译安装的 python3 怎么卸载?

  •  
  •   magine ·
    Ma233 · Jun 14, 2014 · 17419 views
    This topic created in 4491 days ago, the information mentioned may be changed or developed.
    头脑一热从官网下了源文件,编译安装之后

    调试报错 import readline error

    现在想直接用官方源安装,但是编译的目录下 make uninstall 不行啊

    不卸载当前的python3再安装感觉会弄坏系统

    怎么办啊QAQ
    14 replies  •  2022-06-13 11:48:19 +08:00
    jasontse
        1
    jasontse  
       Jun 14, 2014 via iPad
    编译时有 prefix 吗? 如果没有会相当麻烦。
    kqz901002
        2
    kqz901002  
       Jun 14, 2014
    rm -fr
    limon
        3
    limon  
       Jun 14, 2014
    参考Makefile,手动删。。。
    lovesky
        4
    lovesky  
       Jun 15, 2014
    要成功编译readline需要打个小补丁。
    卸不了就别卸了,手动装个readline吧,pip install readline。
    ant_sz
        5
    ant_sz  
       Jun 15, 2014
    装多个版本的 python 的话,用 pyenv 吧。环境是独立的,不会对系统造成影响。
    magine
        6
    magine  
    OP
       Jun 15, 2014
    @lovesky
    装py3的时候重新安装了一次pip,这是不是说我以后pip只能装py3的包了?
    magine
        7
    magine  
    OP
       Jun 15, 2014
    @lovesky
    说错了,是不是默认安装py3的包了?
    magine
        8
    magine  
    OP
       Jun 15, 2014
    @kqz901002
    我知道python3安装的目录位置,以及生成的全局python3指令的位置
    但是想问下还要删除什么
    还有随便删除根目录文件不会出事吧,汗
    magine
        9
    magine  
    OP
       Jun 15, 2014
    @limon
    英语跪,不过找到网上一个智能删除编译安装包裹的脚本,正在研究。
    magine
        10
    magine  
    OP
       Jun 15, 2014
    @ant_sz
    先删干净再说……
    magine
        11
    magine  
    OP
       Jun 15, 2014
    @ant_sz
    先删干净再说……
    @jasontse
    相当麻烦QAQ
    winkidney
        12
    winkidney  
       Jun 17, 2014
    在你的编译安装目录执行
    make uninstall
    lpdswing
        13
    lpdswing  
       Nov 10, 2017
    我也遇到这个问题了,编译安装没设置路径,你那删干净了吗
    VtWEX
        14
    VtWEX  
       Jun 13, 2022
    locate python3 ,然后自己筛选删除吧。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1219 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 17:11 · PVG 01:11 · LAX 10:11 · JFK 13:11
    ♥ Do have faith in what you're doing.