机器人框架 - 名称错误:未定义名称'platform_system'



使用pip安装robotframework sshlibrary时出现以下异常:

python -m pip install robotframework-sshlibrary

以前,它与其他图书馆合作得很好。

例外:

Exception:
Traceback (most recent call last):
File "C:Program Files (x86)Python27libsite-packagespipbasecommand.py", line 209, in main
status = self.run(options, args)
File "C:Program Files (x86)Python27libsite-packagespipcommandsinstall.py", line 310, in run
wb.build(autobuilding=True)
File "C:Program Files (x86)Python27libsite-packagespipwheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "C:Program Files (x86)Python27libsite-packagespipreqreq_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:Program Files (x86)Python27libsite-packagespipreqreq_set.py", line 647, in _prepare_file
set(req_to_install.extras) - set(dist.extras)
File "C:Program Files (x86)Python27libsite-packagespip_vendorpkg_resources__init__.py", line 2810, in extras
return [dep for dep in self._dep_map if dep]
File "C:Program Files (x86)Python27libsite-packagespip_vendorpkg_resources__init__.py", line 2853, in _dep_map
self.__dep_map = self._compute_dependencies()
File "C:Program Files (x86)Python27libsite-packagespip_vendorpkg_resources__init__.py", line 2886, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "C:Program Files (x86)Python27libsite-packagespip_vendorpkg_resources__init__.py", line 2883, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "C:Program Files (x86)Python27libsite-packagespip_vendor_markerlibmarkers.py", line 113, in marker_fn
return eval(compiled_marker, environment)
File "<environment marker>", line 1, in <module>
NameError: name 'platform_system' is not defined

步骤:

  1. 升级了pip(20.0.2(和setuptools(44.0.0(
  2. 然后安装了机器人框架sshlibrary

它很成功。

相关内容

  • 没有找到相关文章

最新更新