All Questions
22
questions
0
votes
2
answers
52
views
How can I have a colored Powershell prompt and still have conda env label?
When I add the code below to C:\Users\USERFOLDER\Documents\PowerShell\Microsoft.PowerShell_profile.ps1:
function prompt
{
$ESC = [char]27
"$ESC[46mPS $($executionContext.SessionState....
6
votes
2
answers
754
views
Are there commands in PowerShell 7 to split the current window into four and request to run Python files in each of them?
Currently, I click + 3x while holding Alt to create four divided terminals within the same tab:
In each of these, I need to run a different Python commnd:
cd "C:\Users\Computador\Desktop\Test ...
0
votes
1
answer
199
views
Python Can Run with Typing "python.exe" Rather Typing "python"
I have added python to env on PATH correctly C:\Users\username\AppData\Local\Programs\Python\Python38\
But now I need to type python.exe to start it rather than typing python like before
And it will ...
0
votes
3
answers
702
views
How can I monitor a specific directory in Windows 11 to see when a new file is added?
I have a shared folder within my company that often gets new builds added to it. It is my job to do QA on the builds in that folder but I am getting tired of just having to check the folder every day ...
0
votes
0
answers
177
views
Windows 11 on 16 core processor reduces CPU utilization when minimizing python processing console window - WHY?
I have a weird issue when doing long term image processing on my 16 core 24 thread i7 13700k processor, on windows 11 pro. My processing lasts for hours so I fire up several python scripts in ...
1
vote
1
answer
1k
views
How to use `python` again in windows PowerShell?
As of yesterday I could run a python command like
python code.py
on a windows 10 powershell command line. After an update this does not work anymore and I get an error
Python was not found; run ...
2
votes
2
answers
8k
views
Looking to 'hide' a window by sending it to background or 'detatching' it from another window
I've compiled a little python program and it has this window open (cmd console) and I would like to make it a background task or just hide it from the user somehow.
Yes I am aware that I can compile ...
1
vote
0
answers
431
views
How is miniconda getting added to my powershell $env:path?
When I check my user and system PATH variables, neither of them has the Miniconda path included.
However, if I open up a powershell prompt and run echo $env:path I see that this includes the contents ...
0
votes
1
answer
1k
views
Is it possible to control a PC through Python/Powershell using RDP or VNC?
I'm writing a script to perform some actions (e.g: execute scripts, copy/paste/rename etc) on a remote machine. The remote machine only has RDP, VNC and FTP activated. I can perform all the above ...
0
votes
1
answer
325
views
PS2Exe to run Python Script Doesn't Print Color (Colorama)
I want some of my Python scripts on Windows to have a custom icon, have their filename text in the title bar, and I want them to be pinnable to the taskbar and start menu. The easiest way to do this, ...
1
vote
1
answer
617
views
Windows Powershell using python Ping instead of default
I am trying to run a ping using windows powershell, but this is the result:
ping google.com
Traceback (most recent call last):
File "C:\Program Files\Python36\Scripts\ping.py", line 31, in ...
0
votes
2
answers
8k
views
Cannot find pip on PowerShell
I am trying to install a package for python and I'm following the "installing packages" on the python documentation in order to do so.
First it asks me to check that I have python on my computer. I'm ...
0
votes
2
answers
447
views
Windows PowerShell returns error for "python --version" even though I have it installed
For a very long time I've used python to code. I installed Anaconda and I use Visual Studio Code to write the code. I want to download a new package using pip, and following the "Installing packages" ...
0
votes
0
answers
875
views
How to capture python interactive session on command line in windows?
I'd like to "log" all of the text (python shell prompts, my commands, python shell output) that displays on my console window after I start the python shell.
I read about powershell's Tee-Object but ...
1
vote
2
answers
6k
views
Run Python Script with Powershell by default instead of Cmd (Windows 10)
I'm on Windows 10 using Python 3.6, and I notice that whenever I double click on a Python file (for example, from File Explorer):
It runs inside a command prompt window! I would prefer if it were to ...