Hi CaAl,
· Is the issue is specific only while opening Python file?
· Are you able to open command prompt otherwise?
Follow the steps provided below to resolve the issue:
Method 1: Boot into safe mode and check if the issue persists.
Start your computer in safe mode
Method 2: You may follow the steps below to keep the command prompt open.
a. Open an elevated Command Prompt window. To open an elevated Command Prompt, click Start, type cmd, right-click Command Prompt, and then click Run as administrator.
b. Type the following command and press ENTER:
cmd /k netstat
c. Exit the Command Prompt window.
Method 3: If the above method does not resolve the issue, you may follow the below steps.
a. Right click your Start button,
b. Select properties, customize
c. Put a check mark at 'Display Run'
Method 4: Try performing SFC scan on the computer.
Hope this will resolve your issues.
Hope this information helps.