Windows 10:/ usr / bin / env:“ python3”:没有此类文件或目录

时间:2020-01-13 14:15:30

标签: python windows-10 git-bash

在Windows 10下,我正在接收

/usr/bin/env: ‘python3’: No such file or directory

在gitbash中,当尝试执行时,例如bpmake命令。

Python已添加到PATH(版本3.8)

配置中缺少什么?

1 个答案:

答案 0 :(得分:2)

Windows 10:我在python38旁边安装了python39。由于系统上存在Mishmash,我卸载了python39。 python3停止工作。

因此,作为解决方法,我将C:\ Python38 \中的python.exe复制到了python3.exe。 不太好,也不可怕。

python3在git-bash中输出:

Here is your order Superman:
Appetizer:[Hummus: Olives Olive Oil ]
Appetizer:[Nothing: Main Course :[Fish: Paprika]
Main Course :[Nothing: Main Course :[Baklava:
Main Course :[Nothing:
Enjoy your meal!
$ where python3
C:\Python38\python3.exe