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

求助,pip 报错。。

  •  
  •   neoz ·
    oif · 2014-06-22 22:30:55 +08:00 · 36895 次点击
    这是一个创建于 3790 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <pre>
    Cleaning up...
    Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/MySQL-python
    Storing debug log for failure in /root/.pip/pip.log
    </pre>
    10 条回复    2014-06-23 09:41:18 +08:00
    neoz
        1
    neoz  
    OP
       2014-06-22 22:32:44 +08:00
    python 2.7.6

    pip{
    BeautifulSoup==3.2.1
    MySQL-python==1.2.4
    PIL==1.1.7
    argparse==1.2.1
    ipython==1.1.0
    meld3==0.6.10
    pony==0.4.9
    python-memcached==1.53
    redis==2.8.0
    supervisor==3.0
    tornado==3.1.1
    wsgiref==0.1.2
    }
    cbsw
        2
    cbsw  
       2014-06-22 22:40:45 +08:00   ❤️ 1
    把 log 中的关键部分放出来
    neoz
        3
    neoz  
    OP
       2014-06-22 22:51:03 +08:00
    @cbsw Downloading/unpacking BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
    Getting page https://pypi.python.org/simple/BeautifulSoup/
    URLs to search for versions for BeautifulSoup==3.2.1 (from -r requirements.txt (line 1)):
    * https://pypi.python.org/simple/BeautifulSoup/3.2.1
    * https://pypi.python.org/simple/BeautifulSoup/
    Getting page https://pypi.python.org/simple/BeautifulSoup/3.2.1
    Could not fetch URL https://pypi.python.org/simple/BeautifulSoup/3.2.1: 404 Client Error: Not Found
    Will skip URL https://pypi.python.org/simple/BeautifulSoup/3.2.1 when looking for download links for BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
    Analyzing links from page https://pypi.python.org/simple/BeautifulSoup/
    Found link https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.0.tar.gz#md5=9c0f5d246ecfcf5f0905a47b1466e140 (from https://pypi.python.org/simple/BeautifulSoup/), version: 3.2.0
    Found link https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.1.tar.gz#md5=44656527ef3ac9874ac4d1c9f35f70ee (from https://pypi.python.org/simple/BeautifulSoup/), version: 3.2.1
    Ignoring link https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.0.tar.gz#md5=9c0f5d246ecfcf5f0905a47b1466e140 (from https://pypi.python.org/simple/BeautifulSoup/), version 3.2.0 doesn't match ==3.2.1
    Downloading BeautifulSoup-3.2.1.tar.gz
    Downloading from URL https://pypi.python.org/packages/source/B/BeautifulSoup/BeautifulSoup-3.2.1.tar.gz#md5=44656527ef3ac9874ac4d1c9f35f70ee (from https://pypi.python.org/simple/BeautifulSoup/)
    Running setup.py (path:/tmp/pip_build_root/BeautifulSoup/setup.py) egg_info for package BeautifulSoup
    running egg_info
    creating pip-egg-info/BeautifulSoup.egg-info
    writing pip-egg-info/BeautifulSoup.egg-info/PKG-INFO
    writing top-level names to pip-egg-info/BeautifulSoup.egg-info/top_level.txt
    writing dependency_links to pip-egg-info/BeautifulSoup.egg-info/dependency_links.txt
    writing manifest file 'pip-egg-info/BeautifulSoup.egg-info/SOURCES.txt'
    warning: manifest_maker: standard file '-c' not found

    reading manifest file 'pip-egg-info/BeautifulSoup.egg-info/SOURCES.txt'
    writing manifest file 'pip-egg-info/BeautifulSoup.egg-info/SOURCES.txt'
    Source in /tmp/pip_build_root/BeautifulSoup has version 3.2.1, which satisfies requirement BeautifulSoup==3.2.1 (from -r requirements.txt (line 1))
    Downloading/unpacking PIL==1.1.7 (from -r requirements.txt (line 2))
    Getting page https://pypi.python.org/simple/PIL/
    URLs to search for versions for PIL==1.1.7 (from -r requirements.txt (line 2)):
    * https://pypi.python.org/simple/PIL/1.1.7
    * https://pypi.python.org/simple/PIL/
    Getting page https://pypi.python.org/simple/PIL/1.1.7
    Could not fetch URL https://pypi.python.org/simple/PIL/1.1.7: 404 Client Error: Not Found
    Will skip URL https://pypi.python.org/simple/PIL/1.1.7 when looking for download links for PIL==1.1.7 (from -r requirements.txt (line 2))
    Analyzing links from page https://pypi.python.org/simple/PIL/
    Skipping link http://effbot.org/downloads/#Imaging (from https://pypi.python.org/simple/PIL/); not a file
    Skipping link http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/); unknown archive format: .htm
    Skipping link http://www.pythonware.com/downloads/Imaging-1.1.3.tar.gz (from https://pypi.python.org/simple/PIL/); wrong project name (not pil)
    Skipping link http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/); not a file
    Skipping link http://www.pythonware.com/products/pil/ (from https://pypi.python.org/simple/PIL/); not a file
    Not searching http://effbot.org/downloads/#Imaging (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://effbot.org/zone/pil-changes-115.htm (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/downloads/Imaging-1.1.3.tar.gz (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/products/pil (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/products/pil/ (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Not searching http://www.pythonware.com/products/pil/ (from https://pypi.python.org/simple/PIL/) for files because external urls are disallowed.
    Could not find any downloads that satisfy the requirement PIL==1.1.7 (from -r requirements.txt (line 2))
    Some externally hosted files were ignored (use --allow-external PIL to allow).
    Cleaning up...
    Removing temporary dir /tmp/pip_build_root...
    No distributions at all found for PIL==1.1.7 (from -r requirements.txt (line 2))
    Exception information:
    Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
    File "/usr/local/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
    File "/usr/local/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files
    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)
    File "/usr/local/lib/python2.7/dist-packages/pip/index.py", line 277, in find_requirement
    raise DistributionNotFound('No distributions at all found for %s' % req)
    DistributionNotFound: No distributions at all found for PIL==1.1.7 (from -r requirements.txt (line 2))
    glasslion
        4
    glasslion  
       2014-06-22 22:57:25 +08:00
    error log 不是已经说得很清楚了吗:

    Some externally hosted files were ignored (use --allow-external PIL to allow).
    neoz
        5
    neoz  
    OP
       2014-06-22 23:02:29 +08:00
    @glasslion pip install --use-wheel Pillow 了,但是还是同样。。。
    glasslion
        6
    glasslion  
       2014-06-22 23:04:56 +08:00   ❤️ 1
    @neoz 怎么又扯上Pillow 和 wheel 了?
    neoz
        7
    neoz  
    OP
       2014-06-22 23:05:40 +08:00
    @glasslion 好吧。。今天第一次接触ub,求指教。。。
    neoz
        8
    neoz  
    OP
       2014-06-22 23:10:38 +08:00
    @glasslion @cbsw 已解决。谢谢
    loading
        9
    loading  
       2014-06-23 05:38:58 +08:00 via iPhone
    @neoz 请给出解决方法,方便后人
    neoz
        10
    neoz  
    OP
       2014-06-23 09:41:18 +08:00   ❤️ 1
    @loading pip install PIL --allow-external PIL --allow-unverified PIL
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5649 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:33 · PVG 14:33 · LAX 22:33 · JFK 01:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.