pybot is not recognized as an internal or external command while running from cmd

三世轮回 提交于 2019-12-19 11:48:11

问题


I get an issue when running the following command, in cmd:

pybot --version

Also given the correct environmental variable path

C:\Python27
C:\Python27\scripts
C:\Python27\Lib\site-packages\robot

Do you have any clues?


回答1:


Given that downgrading to RF 3.0.2 solved the issue you have possibly had RF 3.1 installed previously. In RF 3.1 old start-up scripts like pybot are removed and it is a backwards incompatible change in RF 3.1.

You can check the release notes.

Old start-up scripts like pybot are removed

Old start-up scripts pybot, jybot, ipybot, jyrebot and ipyrebot have been removed in favor of the generic robot and rebot scripts introduced in Robot Framework 3.0. (#2818)




回答2:


If you are using newer robotframework (like 3.1) and you really want to have an alias for robot (maybe because using some test runner like the one in RIDE), you can create the file pybot.batat C:\Python27\Scripts with the following content: @echo off python -m robot %*



来源:https://stackoverflow.com/questions/53718254/pybot-is-not-recognized-as-an-internal-or-external-command-while-running-from-cm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!