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
janxin
V2EX  ›  Python

easy_install 和 pip 的异同

  •  
  •   janxin · 2014-08-04 09:51:29 +08:00 · 5144 次点击
    这是一个创建于 3524 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以前一直以为pip是替代easy_install的工具,easy_install能够实现的功能pip都能够实现。

    但是今天安装一个包的时候发现pip没有找到这个包,easy_install却找到了,那么easy_install和pip的异同到底是什么呢?

    (env)➜ ~ pip install frida
    Downloading/unpacking frida
    Could not find any downloads that satisfy the requirement frida
    Cleaning up...
    No distributions at all found for frida

    (env)➜ ~ easy_install frida
    Searching for frida
    Reading https://pypi.python.org/simple/frida/
    Best match: frida 1.6.2
    4 条回复    2014-08-09 20:37:52 +08:00
    jprovim
        2
    jprovim  
       2014-08-05 02:26:28 +08:00
    小白問題,
    pip找的是https://pypi.python.org/pypi/frida/1.6.2
    easy_install找的是http://pypi.python.org/simple/frida/
    janxin
        3
    janxin  
    OP
       2014-08-05 09:40:02 +08:00
    @jprovim 这两个页面都是存在的,没有任何区别的吧
    看一楼的链接,区别应该是在easy_install会安装编译好的文件,但是pip不会
    leafgray
        4
    leafgray  
       2014-08-09 20:37:52 +08:00
    刚好看tesseract, pip install pillow 装的PIL 需要 from PIL import Image
    而easy_install 的不需要
    -
    更重要的是pip 的出错了,目前还没搞明白。

    同问,真的只有repo 的不同?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4963 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 09:48 · PVG 17:48 · LAX 02:48 · JFK 05:48
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.