问题:zsh: command not found: python

命令行输入 python --version

提示。问题:

zsh: command not found: python

 

还以为是python没装或者出问题了。

 

1.先检测下是否安装python:在命令行里输入命令

ls -l /usr/bin | grep python

 

 

 

 

 

检测发现已安装python   看到是python3。

 

2.那么说明python不是命令字符,  试着输入 python3 --version   运行正常。  相当于要使用python3 做为命令使用  而不能使用python3。

3.想要修改python3 为 python 命令的话  参考资料:https://blog.csdn.net/rothschild666/article/details/125066489

 

 

参考资料:

https://blog.csdn.net/rothschild666/article/details/125066489

 

posted on 2022-07-27 14:38  yuzx  阅读(15713)  评论(0编辑  收藏  举报

导航