V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Livid
V2EX  ›  Raspberry Pi

Raspbian 的 python-pip 包的依赖不太科学

  •  
  •   Livid · 2015-06-25 15:43:42 +08:00 · 4969 次点击
    这是一个创建于 3474 天前的主题,其中的信息可能已经有所发展或是发生改变。

    系统自带的默认 python 版本是 2.7.3

    python -V
    Python 2.7.3
    

    但是当安装 python-pip 时,却提示需要安装 2.6:

    apt-get install python-pip
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    The following extra packages will be installed:
      python-pkg-resources python-setuptools python2.6 python2.6-minimal
    Suggested packages:
      python-distribute python-distribute-doc python2.6-doc binfmt-support
    Recommended packages:
      python-dev-all
    The following NEW packages will be installed:
      python-pip python-pkg-resources python-setuptools python2.6
      python2.6-minimal
    0 upgraded, 5 newly installed, 0 to remove and 11 not upgraded.
    Need to get 561 kB/4,475 kB of archives.
    After this operation, 14.5 MB of additional disk space will be used.
    Do you want to continue [Y/n]?
    

    所以我用了这样的方法:

    wget https://bootstrap.pypa.io/ez_setup.py -O - | python
    easy_install pip
    
    2 条回复    2015-07-20 14:53:04 +08:00
    LazyZhu
        1
    LazyZhu  
       2015-06-25 15:48:26 +08:00
    Nevervoid
        2
    Nevervoid  
       2015-07-20 14:53:04 +08:00
    上海电信表示还要给树莓派做翻墙……好蛋疼。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2805 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 14:16 · PVG 22:16 · LAX 06:16 · JFK 09:16
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.