【发布时间】:2021-06-11 20:55:06
【问题描述】:
我需要安装 pyrate 的帮助。我有 Windows 10 并安装了 python 3.9.2 并尝试按照以下说明安装 pyrate:
https://github.com/mess42/pyrate
我一直按照安装说明进行操作,直到第四个也是最后一个命令,即“pip install [-e] .”。输入命令后,我收到以下错误消息:
ERROR: Exception:
Traceback (most recent call last):
File "d:\python\lib\site-packages\pip\_vendor\packaging\requirements.py", line 113, in __init__
req = REQUIREMENT.parseString(requirement_string)
File "d:\python\lib\site-packages\pip\_vendor\pyparsing.py", line 1955, in parseString
raise exc
File "d:\python\lib\site-packages\pip\_vendor\pyparsing.py", line 3814, in parseImpl
raise ParseException(instring, loc, self.errmsg, self)
pip._vendor.pyparsing.ParseException: Expected stringEnd, found '[' (at char 11), (line:1, col:12)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\python\lib\site-packages\pip\_internal\cli\base_command.py", line 189, in _main
status = self.run(options, args)
File "d:\python\lib\site-packages\pip\_internal\cli\req_command.py", line 178, in wrapper
return func(self, options, args)
File "d:\python\lib\site-packages\pip\_internal\commands\install.py", line 287, in run
reqs = self.get_requirements(args, options, finder, session)
File "d:\python\lib\site-packages\pip\_internal\cli\req_command.py", line 340, in get_requirements
req_to_add = install_req_from_line(
File "d:\python\lib\site-packages\pip\_internal\req\constructors.py", line 391, in install_req_from_line
parts = parse_req_from_line(name, line_source)
File "d:\python\lib\site-packages\pip\_internal\req\constructors.py", line 332, in parse_req_from_line
extras = convert_extras(extras_as_string)
File "d:\python\lib\site-packages\pip\_internal\req\constructors.py", line 64, in convert_extras
return Requirement("placeholder" + extras.lower()).extras
File "d:\python\lib\site-packages\pip\_vendor\packaging\requirements.py", line 115, in __init__
raise InvalidRequirement(
pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'[-e]'": Expected stringEnd
有人可以帮忙吗?谢谢。
【问题讨论】:
-
你用了什么命令?你用过 pip 吗?
-
pip install pyrate似乎对我有用 -
'pip install pyrate' 另一个名为 pyrate 的模块,不是我需要的。我需要的是与光学光线追踪有关的。
标签: python raytracing