使用pip安装robotframework-sshlibrary时出现以下异常:
python -m pip install robotframework-sshlibrary
以前,它在其他库中运行良好。
例外:
Exception:
Traceback (most recent call last):
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\basecommand.py", line 209, in main
status = self.run(options, args)
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\commands\install.py", line 310, in run
wb.build(autobuilding=True)
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\wheel.py", line 748, in build
self.requirement_set.prepare_files(self.finder)
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\req\req_set.py", line 360, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\req\req_set.py", line 647, in _prepare_file
set(req_to_install.extras) - set(dist.extras)
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2810, in extras
return [dep for dep in self._dep_map if dep]
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2853, in _dep_map
self.__dep_map = self._compute_dependencies()
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2886, in _compute_dependencies
common = frozenset(reqs_for_extra(None))
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2883, in reqs_for_extra
if req.marker_fn(override={'extra':extra}):
File "C:\Program Files (x86)\Python27\lib\site-packages\pip\_vendor\_markerlib\markers.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
答案 0 :(得分:0)
步骤:
成功了。