【问题标题】:Need help installing pyrate for Python on Windows 10, getting error message需要帮助在 Windows 10 上安装 pyrate for Python,收到错误消息
【发布时间】: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


【解决方案1】:

-e 表示编辑模式, 它是可选的,这就是为什么它在方括号中写成[-e]

如果您想在使用pip install -e . 时编辑模块,否则请使用pip install .

【讨论】:

    【解决方案2】:

    你需要输入任何一个

    pip install .

    pip install -e .

    【讨论】:

    • 我使用了以下内容: pip install github.com/mess42/pyrate 它给出了以下内容 正在收集 github.com/mess42/pyrate 正在下载 github.com/mess42/pyrate / 185 kB 1.6 MB/s 错误:无法解压缩文件 F:\temp\pip-unpack -qmo1b2mv\pyrate(从 F:\temp\pip-req-build-rmffqoms 下载,内容类型:text/html;charset=utf-8);无法检测存档格式错误:无法确定 F:\temp\pip-req-build-rmffqoms 的存档格式
    猜你喜欢
    • 2021-09-19
    • 1970-01-01
    • 1970-01-01
    • 2015-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多