在Windows 10下,我收到了以下信息:
在gitbash中,当尝试执行例如bpmake命令时。
Python已添加到PATH(版本3.8)。
配置中漏掉了什么?
/usr/bin/env: ‘python3’: No such file or directory
在gitbash中,当尝试执行例如bpmake命令时。
Python已添加到PATH(版本3.8)。
配置中漏掉了什么?
/usr/bin/env: ‘python3’: No such file or directory
Windows 10: 我在 python38 的旁边安装了 python39。由于系统混乱,我卸载了 python39。python3 被停止使用。
因此,我将 C:\Python38\ 中的 python.exe 复制到 python3.exe 作为解决方法。 不是最好的选择,但也不是糟糕的选择。
在 git-bash 中输出 python3 的位置:
$ where python3
C:\Python38\python3.exe
$ /usr/bin/env python3
Python 3.8.6 (tags/v3.8.6:db45529, Sep 23 2020, 15:52:53) [MSC v.1927 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
/usr/bin/env
不是Windows命令。你试图运行的脚本似乎是针对类Unix操作系统定制的。 - undefinedwhereis
命令):你是如何安装Python 3的? - undefined