求助,pip 报错。。

2014-06-22 22:30:55 +08:00
 neoz
<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>
36901 次点击
所在节点    Python
10 条回复
neoz
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
2014-06-22 22:40:45 +08:00
把 log 中的关键部分放出来
neoz
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
2014-06-22 22:57:25 +08:00
error log 不是已经说得很清楚了吗:

Some externally hosted files were ignored (use --allow-external PIL to allow).
neoz
2014-06-22 23:02:29 +08:00
@glasslion pip install --use-wheel Pillow 了,但是还是同样。。。
glasslion
2014-06-22 23:04:56 +08:00
@neoz 怎么又扯上Pillow 和 wheel 了?
neoz
2014-06-22 23:05:40 +08:00
@glasslion 好吧。。今天第一次接触ub,求指教。。。
neoz
2014-06-22 23:10:38 +08:00
@glasslion @cbsw 已解决。谢谢
loading
2014-06-23 05:38:58 +08:00
@neoz 请给出解决方法,方便后人
neoz
2014-06-23 09:41:18 +08:00
@loading pip install PIL --allow-external PIL --allow-unverified PIL

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/118960

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX