求助,pip 报错。。 - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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

求助,pip 报错。。

  •  
  • /a>
      neoz
    oif Jun 22, 2014 37500 views
    This topic created in 4328 days ago, the information mentioned may be changed or developed.
    <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 replies    2014-06-23 09:41:18 +08:00
    neoz
        1
    neoz  
    OP
       Jun 22, 2014
    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  
       Jun 22, 2014   1
    把 log 中的关键部分放出来
    neoz
        3
    neoz  
    OP
       Jun 22, 2014
    @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
    Dwnloading 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  
       Jun 22, 2014
    error log 不是已经说得很清楚了吗:

    Some externally hosted files were ignored (use --allow-external PIL to allow).
    neoz
        5
    neoz  
    OP
       Jun 22, 2014
    @glasslion pip install --use-wheel Pillow 了,但是还是同样。。。
    glasslion
        6
    glasslion  
       Jun 22, 2014   1
    @neoz 怎么又扯上Pillow 和 wheel 了?
    neoz
        7
    neoz  
    OP
       Jun 22, 2014
    @glasslion 好吧。。今天第一次接触ub,求指教。。。
    neoz
        8
    neoz  
    OP
       Jun 22, 2014
    @glasslion @cbsw 已解决。谢谢
    loading
        9
    loading  
       Jun 23, 2014 via iPhone
    @neoz 请给出解决方法,方便后人
    neoz
        10
    neoz  
    OP
       Jun 23, 2014   1
    @loading pip install PIL --allow-external PIL --allow-unverified PIL
    About     Help     Advertise     Blog     API     FAQ     Solana     941 Online   Highest 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 36ms UTC 21:11 PVG 05:11 LAX 14:11 JFK 17:11
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86