Windows 10:/usr/bin/env:'python3':没有这样的文件或目录

2024-10-02 22:34:58 发布

您现在位置:Python中文网/ 问答频道 /正文

在windows 10下,我接收

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

在gitbash中,当试图执行bpmake命令时

添加到路径的Python(版本3.8)

配置中遗漏了什么


Tags: orno命令路径版本envbinwindows
1条回答
网友
1楼 · 发布于 2024-10-02 22:34:58

Windows 10:我在python38旁边安装了python39。由于我的系统上存在mishmash,我卸载了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.
>>>

相关问题 更多 >