[Python-Dev] Python REPL doesn't work on Windows over remote powershell session (winrm)

Chris Angelico rosuav at gmail.com
Sat Aug 25 21:03:18 EDT 2018


On Sun, Aug 26, 2018 at 9:09 AM, ZHU Xiang <xiang.zhu at outlook.com> wrote:
> But for the remote Windows powershell session the REPL doesn’t work, when I
> type ‘’python” on the remote session, there’s nothing happened.
>
> # 1/ pre-install python on server1 (server 1 is a windows os)
> # 2/ from a powershell console on server0, type below 2 commands:
> enter-pssession server1
> python
>

Quick check: With the exact same servers, after you enter-possession,
can you run a Python *script* successfully? And/or can you run:

python -c "print(1+2)"

? If so, it's definitely just a REPL problem.

> The problem impacts all the python versions and all the windows versions.

Which versions were tested?

ChrisA


More information about the Python-Dev mailing list