Python -pip安装任何Libary \ Package的例外我试图安装

时间:2016-01-26 20:20:54

标签: python pip

我在Windows 8.1上使用Python 2.7,使用Visual Studio作为f.w

反正

几天前安装了python和一些软件包之后,我再也无法使用pip安装软件包(其中任何一个 - 只需命名)并继续获取下面的异常,其中包含数十个错误 P.S: 我的环境没有进行任何更改。 我也尝试升级pip并得到同样的错误

感谢您的帮助

同样的错误我有时间:

----- Installing 'webdriver' -----

Collecting webdriver

Exception:

Traceback (most recent call last):

  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 211, in main

    status = self.run(options, args)

  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 294, in run

    requirement_set.prepare_files(finder)

  File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 334, in 
prepare_files

    functools.partial(self._prepare_file, finder))

  File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 321, in 
_walk_req_to_install

    more_reqs = handler(req_to_install)

  File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 461, in 
_prepare_file

    req_to_install.populate_link(finder, self.upgrade)

  File "C:\Python27\lib\site-packages\pip\req\req_install.py", line 250, in 
populate_link

    self.link = finder.find_requirement(self, upgrade)

  File "C:\Python27\lib\site-packages\pip\index.py", line 486, in 
find_requirement

    all_versions = self._find_all_versions(req.name)

  File "C:\Python27\lib\site-packages\pip\index.py", line 404, in 
_find_all_versions

    index_locations = self._get_index_urls_locations(project_name)

  File "C:\Python27\lib\site-packages\pip\index.py", line 378, in 
_get_index_urls_locations

    page = self._get_page(main_index_url)

  File "C:\Python27\lib\site-packages\pip\index.py", line 818, in _get_page

    return HTMLPage.get_page(link, session=self.session)

  File "C:\Python27\lib\site-packages\pip\index.py", line 949, in get_page

    trusted=link.trusted,

  File "C:\Python27\lib\site-packages\pip\index.py", line 866, in __init__

    namespaceHTMLElements=False,

  File "C:\Python27\lib\site-packages\pip\_vendor\html5lib\html5parser.py", 
line 27, in parse

    tb = treebuilders.getTreeBuilder(treebuilder)

  File "C:\Python27\lib\site-
packages\pip\_vendor\html5lib\treebuilders\__init__.py", line 73, in 
getTreeBuilder

    return etree.getETreeModule(implementation, **kwargs).TreeBuilder

  File "C:\Python27\lib\site-packages\pip\_vendor\html5lib\utils.py", line 98, 
in moduleFactory

    objs = factory(baseModule, *args, **kwargs)

  File "C:\Python27\lib\site-
packages\pip\_vendor\html5lib\treebuilders\etree.py", line 17, in 
getETreeBuilder

    ElementTreeCommentType = ElementTree.Comment("asd").tag

AttributeError: 'module' object has no attribute 'Comment'

You are using pip version 7.1.2, however version 8.0.0 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' 
command.

0 个答案:

没有答案