Skip to main content

Questions tagged [python]

Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python should be asked at Stack Overflow (https://www.stackoverflow.com) instead.

0 votes
1 answer
266 views

Extremely slow json.load of a network response in WSL

Decoding a json response takes a lot of time on my system - Precision 5520 (11th gen I7, 64 GB) with Linux 20.04 LTS under WSL2 under Windows 10 Pro. Here is the relevant part of the code: def ms_now()...
AlwaysLearning's user avatar
5 votes
2 answers
2k views

How to run python from Windows cmd?

I make a lot of python scripts - like blah.py, in my scripts directory, which is in the path. I want to just type "blah" to execute blah.py. but when I do - the file opens in visual studio ...
Darren Oakey's user avatar
3 votes
1 answer
2k views

How to use pipx install -r?

I was really wondering how can I use the pipx install -r requirements.txt like we do using pip? Is there an alternative to that? When I was using it, it shows: [xyro@arch terra]$ pipx install -r ...
xyro's user avatar
  • 31
0 votes
0 answers
235 views

What is the best way to redirect PulseAudio sink data to another(python) process

My goal is to get real time audio data from some application and mic to another process(python) for processing(DSP, live transcription ect.). I was able to create a PulseAudio sink, using PulseAudio ...
Michael Shevelin's user avatar
0 votes
1 answer
1k views

Error: Externally managed Environment,PIP

I am having this error while installing a package using PIP, How to fix it? [xyro@arch ~]$ pip install flask error: externally-managed-environment × This environment is externally managed ╰─> To ...
xyro's user avatar
  • 31
0 votes
1 answer
393 views

No performance increase when porting Python multiprocessing calculations from Apple M1 Pro to Dual CPU Xeon E5-2687W v4

As part of my data evaluation routine, I am performing 1'000'000 Monte-Carlo simulations on my MacBook Pro M1 Pro (10 Core, 32 GB RAM) using multiple processes in Python 3.10.5 (concurrent. futures....
albert's user avatar
  • 283
0 votes
3 answers
748 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 ...
Luke's user avatar
  • 101
0 votes
0 answers
887 views

SSL: CERTIFICATE_VERIFY_FAILED when calling Azure library in docker container and in VS code running locally

I am reading a client certificate from Azure key vault in Python. Code in being run in VS code in windows. I have following code credential = DefaultAzureCredential() certificate_client = ...
Ali's user avatar
  • 101
0 votes
0 answers
210 views

Mullvad VPN WireGuard several interfaces on the same machine

Not sure what I am trying to do is even possible. I am trying to create a web crawler with about 20 threads and I am trying to route each thread requests (using python requests) through a different ...
Daniel Cohen's user avatar
1 vote
1 answer
478 views

How to make Anaconda pip as the default pip

My Python 3 pip is messing up. Apparently I have a non-conda pip as the default pip but conda python is my default python (as below), which is messing up with package installations: >which -a pip /...
Tina J's user avatar
  • 539
1 vote
2 answers
1k views

How to update Python 3 installed through the Microsoft store without reinstalling a new version?

I installed Python 3.10 through the Microsoft Store and used to launch my scripts calling in python as such: python <path to script>.py. Python 3.11 just launched and now that I type python in ...
Odyseus_v4's user avatar
0 votes
0 answers
40 views

does installing Flask python package within PyCharm create duplicate entries on my hard drive?

This is basically a question on how Install really works with Pip and Python, i.e. what physically happens when you "Install a package" I assume when I use pip to install flask from my ...
Cool Pontiac's user avatar
0 votes
0 answers
91 views

Dynamically checking and allocating SLURM nodes within a python script

I have a computationally expensive simulation function I am looking to distribute accross a multi-node cluster. The code looks something like this: input_tasks = [input_0, input_1, ..., input_n] for i ...
GTOgod's user avatar
  • 109
0 votes
1 answer
688 views

PermissionError: The process cannot access file because being used by another process: 'C:\\Users\\<username>\\AppData\\Local\\Temp\\scipy-36p0uzzx'

I'm using an open-source program that runs through thousands of operations in sequence and "scipy" is one of the libraries being used. At some random iteration, I get this error and the ...
not_a_generic_user's user avatar
0 votes
1 answer
679 views

How to Connect to an ICOM IC-705 Transceiver Using WiFi and UDP to Send Commands?

I have an ICOM IC-705 transceiver, and I'm attempting to connect to this device over WiFi to send commands to it via UDP. I have the IP address and UDP port details, but I'm unsure about the exact ...
Florian Ldt's user avatar

15 30 50 per page
1
5 6
7
8 9
212