How to configure rsconnect-python using VS Code

I am attempting to configure my shinyapps.io account to publish dashboards created using python in VS Code. However, I cannot seem to get it to connect.

I've installed the rsconnect-python package using pip install and I am following the instructions on this webpage:
https://docs.posit.co/shinyapps.io/guide/getting_started/#working-with-shiny-for-python

After running the following code in the VS Code terminal:
rsconnect add --acount --name --token --secret

I get this error:
"rsconnect : The term 'rsconnect' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."

Can't find anything about this anywhere and feel like I'm making a stupid mistake somewhere, but I cant find it.

Thanks!

Hi @pj_1996,

do you use conda to manage your python environments and packages? This sounds as if the environment containing rsconnect-python was not active in that terminal where you ran the command. Make sure your active environment contains rsconnect-python and it'll work, at least it did for me :wink:

Hope this helps! :raising_hand_man: