V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2014-06-14 11:46:57 +08:00 · 16187 次点击
    这是一个创建于 3576 天前的主题,其中的信息可能已经有所发展或是发生改变。
    头脑一热从官网下了源文件,编译安装之后

    调试报错 import readline error

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

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

    怎么办啊QAQ
    14 条回复    2022-06-13 11:48:19 +08:00
    jasontse
        1
    jasontse  
       2014-06-14 11:48:37 +08:00 via iPad
    编译时有 prefix 吗? 如果没有会相当麻烦。
    kqz901002
        2
    kqz901002  
       2014-06-14 11:56:17 +08:00
    rm -fr
    limon
        3
    limon  
       2014-06-14 13:07:56 +08:00
    参考Makefile,手动删。。。
    lovesky
        4
    lovesky  
       2014-06-15 10:20:53 +08:00
    要成功编译readline需要打个小补丁。
    卸不了就别卸了,手动装个readline吧,pip install readline。
    ant_sz
        5
    ant_sz  
       2014-06-15 12:13:59 +08:00
    装多个版本的 python 的话,用 pyenv 吧。环境是独立的,不会对系统造成影响。
    magine
        6
    magine  
    OP
       2014-06-15 19:20:48 +08:00
    @lovesky
    装py3的时候重新安装了一次pip,这是不是说我以后pip只能装py3的包了?
    magine
        7
    magine  
    OP
       2014-06-15 19:21:23 +08:00
    @lovesky
    说错了,是不是默认安装py3的包了?
    magine
        8
    magine  
    OP
       2014-06-15 19:32:17 +08:00
    @kqz901002
    我知道python3安装的目录位置,以及生成的全局python3指令的位置
    但是想问下还要删除什么
    还有随便删除根目录文件不会出事吧,汗
    magine
        9
    magine  
    OP
       2014-06-15 19:33:14 +08:00
    @limon
    英语跪,不过找到网上一个智能删除编译安装包裹的脚本,正在研究。
    magine
        10
    magine  
    OP
       2014-06-15 19:34:25 +08:00
    @ant_sz
    先删干净再说……
    magine
        11
    magine  
    OP
       2014-06-15 19:34:41 +08:00
    @ant_sz
    先删干净再说……
    @jasontse
    相当麻烦QAQ
    winkidney
        12
    winkidney  
       2014-06-17 09:24:35 +08:00
    在你的编译安装目录执行
    make uninstall
    lpdswing
        13
    lpdswing  
       2017-11-10 19:19:43 +08:00
    我也遇到这个问题了,编译安装没设置路径,你那删干净了吗
    VtWEX
        14
    VtWEX  
       2022-06-13 11:48:19 +08:00
    locate python3 ,然后自己筛选删除吧。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4934 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 05:39 · PVG 13:39 · LAX 22:39 · JFK 01:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.