一、确保python已设置成系统环境变量
二、在python安装目录的Scripts目录下(如:C:Program FilesPython37Scripts),新建一个txt文件,内容如下:
三、根据需要,将该文件重命名为:robot.bat(或pybot.bat),解决OK
备注:robot是python3的指令,pybot是python2的指令