V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
swx934
V2EX  ›  问与答

需要安装 pip install gtk,但是提示失败

  •  
  •   swx934 · Dec 8, 2017 · 3877 views
    This topic created in 3063 days ago, the information mentioned may be changed or developed.

    需要安装"pip3 install gtk"但是 pip3 安装会失败,所以尝试去 pypip 网站下载之后本地安装,目前已经下载了并完成解压,接下来不知道怎么安装,(我用的 Ubntu )?

    5 replies    2017-12-08 15:03:49 +08:00
    awanabe
        1
    awanabe  
       Dec 8, 2017
    pip3 安装会失败 ---> 什么错误?

    下载安装包解压 一般就是
    > python setup.py build
    > python setup.py install
    wwqgtxx
        2
    wwqgtxx  
       Dec 8, 2017 via iPhone
    你可能需要先安装 libgtk libgtk-dev 这种桌面库(通过系统包管理器)
    swx934
        3
    swx934  
    OP
       Dec 8, 2017
    @awanabe Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-yfqlo4iq/pygtk/
    swx934
        4
    swx934  
    OP
       Dec 8, 2017
    @awanabe
    wilson@linux:~/Downloads/pygtk-2.24.0$ python3 setup.py install
    ********************************************************************
    * Building PyGTK using distutils is only supported on windows. *
    * To build PyGTK in a supported way, read the INSTALL file. *
    ********************************************************************
    wilson@linux:~/Downloads/pygtk-2.24.0$ python3 setup.py build
    ********************************************************************
    * Building PyGTK using distutils is only supported on windows. *
    * To build PyGTK in a supported way, read the INSTALL file. *
    ********************************************************************
    wilson@linux:~/Downloads/pygtk-2.24.0$
    貌似还是不行啊?
    julyclyde
        5
    julyclyde  
       Dec 8, 2017
    @swx934 看提示信息啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3724 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 04:28 · PVG 12:28 · LAX 21:28 · JFK 00:28
    ♥ Do have faith in what you're doing.