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