pyton 2.7.5 执行 pip install bleach 报错,没找出来什么原因导致的问题,请大家帮忙看看,主要日志如下:
Downloading from URL https://pypi.python.org/packages/85/3e/cf449cf1b5004e87510b9368e7a5f1acd8831c2d6691edd3c62a0823f98f/html5lib-1.0.1.tar.gz#md5=942a0688d6bdf20d087c9805c40182ad (from https://pypi.python.org/simple/html5lib/) Running setup.py egg_info for package html5lib Traceback (most recent call last): File "<string>", line 16, in <module> File "/root/maodou/venv/build/html5lib/setup.py", line 54, in <module> MarkerEvaluation = pkg_resources.MarkerEvaluation AttributeError: 'module' object has no attribute 'MarkerEvaluation' Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 16, in <module> File "/root/maodou/venv/build/html5lib/setup.py", line 54, in <module> MarkerEvaluation = pkg_resources.MarkerEvaluation AttributeError: 'module' object has no attribute 'MarkerEvaluation' ---------------------------------------- Cleaning up... Removing temporary dir /root/maodou/venv/build... Command python setup.py egg_info failed with error code 1 in /root/maodou/venv/build/html5lib Exception information: Traceback (most recent call last): File "/root/maodou/venv/lib/python2.7/site-packages/pip/basecommand.py", line 134, in main status = self.run(options, args) File "/root/maodou/venv/lib/python2.7/site-packages/pip/commands/install.py", line 236, in run requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) File "/root/maodou/venv/lib/python2.7/site-packages/pip/req.py", line 1134, in prepare_files req_to_install.run_egg_info() File "/root/maodou/venv/lib/python2.7/site-packages/pip/req.py", line 259, in run_egg_info command_desc='python setup.py egg_info') File "/root/maodou/venv/lib/python2.7/site-packages/pip/util.py", line 670, in call_subprocess % (command_desc, proc.returncode, cwd)) InstallationError: Command python setup.py egg_info failed with error code 1 in /root/maodou/venv/build/html5lib
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.