PyCharm remote interpreter Linux host, Windows guest
Answered
I have a problem with this setup. Host and guest have access through ssh to each other. SSH session in Windows invokes Powershell. May it be the issue?
env : The term 'env' 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.
At line:1 char:1
+ env JETBRAINS_REMOTE_RUN=1 PYTHONUNBUFFERED=1 '/Users/VM/Python37/pyt ...
+ ~~~
+ CategoryInfo : ObjectNotFound: (env:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Process finished with exit code 1
Please sign in to leave a comment.
When does it appear exactly? Please attach a screenshot.
Do you shh into remote machine and then open PyCharm there or use PyCharm locally and connect to remote interpreter?
Hi!
I'm currently having the same issue: I'm connecting to a remote machine and then use PyCharm locally to use the remote interpreter. The connection is established.
When I choose the interpreter, I get this error:
#< CLIXML
<Objs Version="1.1.0.1" xmlns="http://schemas.microsoft.com/powershell/2004/04"><Obj S="progress" RefId="0"><TN RefId="0"><T>System.Management.Automation.PSCustomObject</T><T>System.Object</T></TN><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><Obj S="progress" RefId="1"><TNRef RefId="0" /><MS><I64 N="SourceId">1</I64><PR N="Record"><AV>Preparing modules for first use.</AV><AI>0</AI><Nil /><PI>-1</PI><PC>-1</PC><T>Completed</T><SR>-1</SR><SD> </SD></PR></MS></Obj><S S="Error">env : The term 'env' is not recognized as the name of a cmdlet, function, script file, or operable _x000D__x000A_</S><S S="Error">program. Check the spelling of the name, or if a path was included, verify that the path is _x000D__x000A_</S><S S="Error">correct and try again._x000D__x000A_</S><S S="Error">At line:1 char:1_x000D__x000A_</S><S S="Error">+ env "JETBRAINS_REMOTE_RUN"="1" "PYTHONUNBUFFERED"="1" /C/Users/allet/ ..._x000D__x000A_</S><S S="Error">+ ~~~_x000D__x000A_</S><S S="Error"> + CategoryInfo : ObjectNotFound: (env:String) [], CommandNotFoundException_x000D__x000A_</S><S S="Error"> + FullyQualifiedErrorId : CommandNotFoundException_x000D__x000A_</S><S S="Error"> _x000D__x000A_</S></Objs>
Process finished with exit code 1
I can't figure out what is going on there.
Thanks
I have moved to another IDE where this issue was solved by choosing destination platform, because command to activate remote connection and environment is different for each platform. If you develop for Windows platform there are docker containers: 3.9.2-windowsservercore or linux hosts. If your host runs Linux everything works fine.