【问题标题】:how to solve an error related pylint installltion on vs code stdio如何解决 vs code stdio 上与 pylint installltion 相关的错误
【发布时间】:2020-03-08 20:32:55
【问题描述】:
C:\Users\home\Desktop\projectF\Voice-Based-Email-For-ThenBlind- 
master>C:/Python34/python.exe -m
pip install -U pylint --user
Downloading/unpacking pylint 
Downloading/unpacking isort>=4.2.5,<5 (from pylint)
Downloading/unpacking astroid>=2.3.0,<2.4 (from pylint)
Cleaning up...
Exception:
Traceback (most recent call last):
  File "C:\Python34\lib\site- 
  packages\pip\_vendor\pkg_resources.py", line 2421, in _dep_map
    return self.__dep_map
  File "C:\Python34\lib\site- 

packages\pip_vendor\pkg_resources.py",第 2283 行,在 getattr 中 引发 AttributeError(attr) 属性错误:_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 2232, in requires
    dm = self._dep_map
  File "C:\Python34\lib\site- 

packages\pip_vendor\pkg_resources.py”,第 2423 行,在 _dep_map self.__dep_map = self._compute_dependencies() 文件“C:\Python34\lib\site- packages\pip_vendor\pkg_resources.py",第 2447 行,在 _ 计算依赖项 解析=下一个(parse_requirements(distvers)) 文件“C:\Python34\lib\site- 包\pip_vendor\pkg_resources.py",第 2544 行,在 解析需求 线,p,规格 = scan_list(版本,LINE_END,线,p, (1,2),"版本规范") 文件“C:\Python34\lib\site- packages\pip_vendor\pkg_resources.py",第 2522 行,在 scan_list 中 "预期的 ',' 或列表结尾",line,"at",line[p:] ValueError: ("Expected ',' or end-of-list in", 'lazy-object-proxy ==1.4.', 'at', '')

在 C:\Users\home\pip\pip.log 中存储失败的调试日志

【问题讨论】:

    标签: python-3.x


    【解决方案1】:

    当我尝试安装 pylint 时,我在 Ubuntu 14.04 VM 上遇到了同样的问题。出现错误提示“UserWarning: Unknown distribution option”,这表明我的 setuptools 的版本可能太旧了。但是更新并没有解决问题。于是我尝试从项目页面lazy-object-proxy.1.4.3 zip file下载源文件 下载 zip 文件后,只需通过 zip 文件安装即可解决我的问题:

    pip install PATH_TO_THE_ZIP_FILE
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多