[英]Git Bash | bash: sudo: command not found (and others)
目标:让诗歌发挥作用。
在带有WSL 2的Windows 10上使用Git Bash 。
我有 Anaconda3 和 Git 工作。
pip install bash
工作但没有帮助。
吉特巴什:
(base)
HDS+dabell@PF2DCSXD MINGW64 ~
$ sudo -s
bash: sudo: command not found
(base)
HDS+dabell@PF2DCSXD MINGW64 ~
$ su -
bash: su: command not found
(base)
HDS+dabell@PF2DCSXD MINGW64 ~
$ apt update
bash: apt: command not found
(base)
HDS+dabell@PF2DCSXD MINGW64 ~
$ apt install sudo -y
bash: apt: command not found
(base)
HDS+dabell@PF2DCSXD MINGW64 ~
$ cat ~/.bashrc
. /c/Users/dabell/Anaconda3/etc/profile.d/conda.sh
(base)
这些命令适用于 WSL 2。
正如@tkausl 所说, Git Bash 没有这样的命令。
我还在 Stack Overflow 上找到了一个类似的帖子,上面的答案也是如此。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.