(1)python版本不对
尽管用了python,但有可能调用了系统的python而不是自己当前环境下的python。
解决方法:
使用python3,代替python,或使用python命令的绝对路径。