【发布时间】:2020-04-30 06:28:40
【问题描述】:
在 windows 10 下,我正在接收
/usr/bin/env: ‘python3’: No such file or directory
在 gitbash 中,当尝试执行例如 bpmake 命令时。
Python 添加到 PATH(3.8 版)
配置中遗漏了什么?
【问题讨论】:
-
whereis python3的结果是什么? -
bash: whereis: command not found // 试图找出“whereis”的依赖关系
-
/usr/bin/env据我所知不是 Windows 命令。您尝试运行的脚本似乎是为类似 unix 的操作系统量身定制的。 -
假设 git-bash 具有整体标准设置(除了缺少
whereis):您是如何安装 Python 3 的? -
或者,如果您需要类似 unix 的行为,请考虑使用适用于 Linux 的 Windows 子系统 (WSL)。 或者,做所有 Windows 风格的事情(也就是说,不使用 git-bash,而是使用 Windows 命令提示符或类似的;以及 Windows 风格的 PATH 设置)。
标签: python windows-10 git-bash