'rasa' is not recognized as an internal or external command, operable program or batch file

前端 未结 3 1384
走了就别回头了
走了就别回头了 2020-12-21 13:56

Unable to run the rasa init command and getting following error: \'rasa\' is not recognized as an internal or external command, operable program or batch file.

I hav

相关标签:
3条回答
  • 2020-12-21 14:15

    Hopefully you got it working by now, but if not you can either

    1) Try setting the Python path in Advanced System Settings > Environment Variables. (ideally we want it in a top-level folder)

    2) Re-install Python using the graphical installer. Run the regular Python installer as administrator. BE SURE to click the little ‘Add to PATH’ checkbox, or all this will be for naught!! (For me personally this is a lot easier than manually adjusting the path in environment variables.) Then choose “Custom install location.” Clicking “Install for all users” should automatically change the install path to the C:Program Files folder.

    3) You may also be able to do this without a full reinstall by selecting Programs > Programs and Features > Modify/Repair.

    0 讨论(0)
  • Sams answer is right. Rasa is probably not in your environment variable path.

    Have you already tried:

    py -m rasa init
    

    or

    python -m rasa init
    

    If this doesn't work you may find answers at the rasa community forum

    0 讨论(0)
  • 2020-12-21 14:29

    Did you try pip based installation as mentioned here

    You can do

    pip install rasa
    

    If you have already done that I suspect that you need to add rasa in the environment variable PATH Also are you using virtualenv? or conda environment? I would suggest using that to do the installation.

    0 讨论(0)
提交回复
热议问题