Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python errors out in Powershell ISE

I am at Chapter One of Zed Shaw's Python the Hard Way book and I'm already stuck. I can run python in a command shell, but when I try to run it in PowerShell, I get this:

python : Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 21:26:53) [MSC v.1916 32 bit (Intel)] on win32
At line:1 char:1
+ python
+ ~~~~~~
    + CategoryInfo          : NotSpecified: (Python 3.7.3 (v...ntel)] on win32:String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

Any guidance appreciated. I'm going to move on using the command shell for now but would love to figure out PowerShell

like image 899
Mark Folse Avatar asked Dec 28 '25 08:12

Mark Folse


1 Answers

You have to run Windows PowerShell, and not Windows PowerShell ISE.

The ISE is a script editor for PowerShell, and doesn't run python. Windows PowerShell (not ISE) does allow you to run python.

like image 77
HAL9256 Avatar answered Dec 30 '25 22:12

HAL9256