Python 通过cmd(Windows)安装pylint失败
正如标题所述,我正试图使用以下命令安装pylint: pip安装pylint 但我得到以下例外:Python 通过cmd(Windows)安装pylint失败,python,pip,pylint,Python,Pip,Pylint,正如标题所述,我正试图使用以下命令安装pylint: pip安装pylint 但我得到以下例外: Exception: Traceback (most recent call last): File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2482, in _dep_map return self.__dep_map File "C:\Python34\lib\site-packages
Exception:
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2482, in _dep_map
return self.__dep_map
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2344, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Python34\lib\site-packages\pip\basecommand.py", line 122, in main
status = self.run(options, args)
File "C:\Python34\lib\site-packages\pip\commands\install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\Python34\lib\site-packages\pip\req.py", line 1265, in prepare_files
req_to_install.extras):
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2291, in requires
dm = self._dep_map
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2484, in _dep_map
self.__dep_map = self._compute_dependencies()
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2508, in _compute_dependencies
parsed = next(parse_requirements(distvers))
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2605, in parse_requirements
line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
File "C:\Python34\lib\site-packages\pip\_vendor\pkg_resources.py", line 2583, in scan_list
"Expected ',' or end-of-list in",line,"at",line[p:]
ValueError: ("Expected ',' or end-of-list in", 'lazy-object-proxy ==1.4.*', 'at', '*')
Storing debug log for failure in C:\Users\Haiss\pip\pip.log
有人知道是什么导致它失败的吗?我使用Anaconda安装了Python 3。我检查了调试日志,但没有提供任何其他详细信息。尝试以下操作:
easy_install --upgrade pip
大部分都成功了!但是现在我得到一个错误,说colorama需要一个不同的Python。有没有办法卸载或绕过此操作?我试着运行pip卸载colorama,但它不起作用。更不用说使用easy install for everything似乎已经解决了这个问题。谢谢你的帮助。