【问题标题】:ERROR: *.whl is not a valid wheel filename错误:*.whl 不是有效的车轮文件名
【发布时间】:2022-08-14 21:40:56
【问题描述】:

* 或星号命令在执行以下命令时无法在 shell 和命令提示符中识别。

我在 Wheelhouse 目录中有多个 python 轮子。

python -m pip install --no-index --no-deps C:\\Users\\Admin\\test2\\wheelhouse\\*.whl

WARNING: Requirement \'C:\\\\Users\\\\Admin\\\\test2\\\\wheelhouse\\\\*.whl\' looks like a filename, but the file does not exist

ERROR: *.whl is not a valid wheel filename.

How to install multiple .whl files in the right order

  • @sinoroc 你能帮忙吗? \"@{sinoroc}\"
  • 请不要尝试以这种方式联系用户,这在 SO 上是不受欢迎的。
  • (我认为以这种方式联系某人甚至都行不通,我没有收到任何通知,但偶然我还是读到了这个问题)——这似乎是 Windows 命令提示符的限制,它不能在这种情况下处理*-wildcard。但是我现在没有可用的 Windows 来测试它。我很确定它可以在 Linux(类似 bash 的 shell)上运行。
  • 谢谢!找到了解决该问题的方法: FOR %i in (wheelhouse*.whl) DO python -m pip install %i

标签: shell cmd pip


【解决方案1】:
 FOR %i in (wheelhouse\*.whl) DO python -m pip install --no-index --no-deps %i

此命令适用于 Windows PowerShell。

【讨论】:

    猜你喜欢
    • 2020-04-01
    • 2017-06-13
    • 2021-04-29
    • 2016-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-28
    • 2020-12-25
    相关资源
    最近更新 更多