All Questions
Tagged with powershell python
1,776
questions
0
votes
0
answers
24
views
Python Flask webapp does not start/reach the Powershell Script
I am writing a website in Python Flask with Powershell scripts integrated.
I want to run a Powershell script that uses input from the user via the html page.
But it never reaches the Powershell script....
-1
votes
0
answers
38
views
Install Shared Printer locally under the context of the currently logged on user via Python
I tried to install a shared printer to my local pc under the context of the currently logged-on user not the user who's running the script but I didn't get it successfully.
So I need to know how can I ...
0
votes
0
answers
39
views
Problem with including non-project folder to a python project when building into an exe file
I have a python project inside "venv" folder and it contains my python files and non-project folder which is "ActiveDirectory" referring to Active Directory PowerShell module.
So ...
0
votes
0
answers
35
views
Import Active Directory PowerShell Module inside a Python project
I have a python file contains a PowerShell script using subprocess library. So I import Active Directory module inside my PowerShell script, But it needs the module to be loaded and exists in my pc ...
0
votes
1
answer
49
views
Az.cmd closes immediately
When I Run az.cmd on my windows 10 screen some information flashes by and the screen closes.
When I right click the shortcut and choose Edit I see
:: :: Microsoft Azure CLI - Windows Installer - ...
0
votes
0
answers
33
views
Excel hangs in Python script to export excel as a pdf in Task Scheduler, but works normally
I'm trying to just automate creating a pdf from an excel file to email it out everyday. It should be simple, but it isn't. If I run these files in command line, they will run, create the pdf, and ...
0
votes
1
answer
52
views
How to make a script to automate taking the GET data from my wordpress site and POST to another server
I have this problem and I'm a newbie of REST API world. I have a Wordpress site in which I sell CD Albums, and I have to take every orders of the day and send some specific data (like the bardcode/ean,...
-3
votes
1
answer
85
views
python module install stuff
whenever i try to use python module install in the shell (im trying to use the command "python -m pip install pygame") and whenever i try to it says "Python was not found; run without ...
0
votes
0
answers
48
views
How to reenter previously exited pipenv environment on Windows
There is a similar thread on this, however it is on Mac. There's also another for Linux.
I am wondering how to specifically open this virtual environment again, on Windows, which is located at:
C:\...
4
votes
1
answer
57
views
Python/Powershell combo - make pwsh load even faster
My main programming is done within Python, and want to invoke custom Powershell cmdlets I wrote. Added my .psm1 file to the $PSModulePath, and my cmdlets are always loaded.
And I -NoProfile, and -...
0
votes
0
answers
23
views
ModuleNotFound Cython in powershell while installing dependencies but I can import Cython
I installed it via
python -m pip install Cython
I can do:
But then, when I try to install pycocotools by running
python -m pip install git+https://github.com/gautamchitnis/cocoapi.git@cocodataset-...
3
votes
0
answers
49
views
Activating virtual environment makes python disappear?
Screenshot of Visual Studio Code terminal
As shown in the screenshot, python works just fine in Powershell.
I then activate the virtual environment at E:\DrewFTCAPI\ftcapivenv and python is gone. Not ...
-6
votes
1
answer
64
views
Please help to solve this [closed]
At line:1 char:1
+ virtualenv kasun
+ ~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (virtualenv:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
...
0
votes
1
answer
65
views
Is there an in-between function or an Alternative to subprocess.Popen and subprocess.Run?
I'm creating a Python terminal on a Windows computer from scratch and I'm trying to sync the error commands and pipe them from either command prompt or Powershell which ever one the code is in. ...
0
votes
0
answers
50
views
Running Powershell commands using Paramiko in python in a remote Windows 7
I'm using paramiko in Python to send commands (and retrieve data) from another server.
When I send a Powershell command to Windows 10 server it all works OK.
But when sending this to Windows 7 it ...