Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PowerShell & Python
#1
Hi all,
I’m trying to run simple python scripts with PowerShell. I can run my scripts in .cmd without a hitch. The path looks proper. I opened PowerShell in admin mode as well and it’s still not working.
Researching the web, it seems that MicroSoft disables the functionality of running python with PowerShell?
I’m on PS 7.2 and python 3.11

Thanks,
"Human history becomes more and more a race between education and catastrophe." - H. G. Wells (1866-1946)
Reply
#2
I solved it. You need to type "python filename.py" and then enter. Thanks.
"Human history becomes more and more a race between education and catastrophe." - H. G. Wells (1866-1946)
Reply
#3
Just curious - how do you run "scripts in .cmd without a hitch" if you just discovered that you "need to type "python filename.py" and then enter"?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Show powershell errors in flask-wtf web form robertkwild 14 2,625 Jun-30-2024, 03:15 PM
Last Post: robertkwild
  Cant get powershell script to run with subprocess robertkwild 2 1,434 Jun-27-2024, 01:23 PM
Last Post: robertkwild
  Running powershell command in flask wtf form robertkwild 10 2,347 Jun-27-2024, 09:49 AM
Last Post: robertkwild
  Passing web form to powershell robertkwild 1 976 Jun-14-2024, 10:16 AM
Last Post: Akshiya
  using PowerShell from Python script for mounting shares tester_V 8 2,376 Mar-12-2024, 06:26 PM
Last Post: tester_V
  How to write a part of powershell command as a variable? ilknurg 2 1,915 Jul-26-2022, 11:31 AM
Last Post: ilknurg
Photo Windows 10 PowerShell doesn't work Amy 3 4,888 Apr-27-2021, 01:33 PM
Last Post: jefsummers
  Powershell Session translation to Python; Session code seems to not work Maverick494 1 4,691 Jun-26-2018, 05:16 PM
Last Post: Maverick494
  how to run a file in powershell with python RomanEmpire 6 34,197 Jun-27-2017, 03:23 PM
Last Post: sparkz_alot
  virtualenv on powershell mcmxl22 3 7,838 Feb-08-2017, 06:29 AM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020