[PM2][错误] 解释器 python 在路径中不可用。(输入“which python”进行仔细检查。)

qba*_*sty 8 python discord

当我尝试运行我的不和谐 python 机器人时:

qbasty@cody-discord-bot:~/matrixcraft-cody$ pm2 start Cody.py --interpreter=python

[PM2][ERROR] Interpreter python is NOT AVAILABLE in PATH. (type 'which python' to double check.)

我得到了那个错误。DigitalOcean 上的 Ubuntu 20。

小智 21

这对我有用:

pm2 start bot.py --name bot --interpreter python3