Python script in Powershell: Remote Exception and NativeCommandError

Question:

I’m at the very beginning of learning to code in Python (and first time using Powershell), so I assume my problem is very basic. When I try to run any Python script in PS, I get an error like the one below. The main suggestions I’ve found online are to (1) make sure I’ve set execution policy to unrestricted, and (2) edit my Path to include "c:\Python27;c:\Python27\Scripts" I’ve done both these things. What else should I try?

Answer:

This could be due to a 64bit/32bit mismatch. Try running the python command in “Powershell (x86)” assuming your were using the 64bit “Powershell” or “Powershell ISE”.

Source:

Python script in Powershell: Remote Exception and NativeCommandError by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply