Questions tagged [python]
Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.
2,344 questions
-1
votes
2
answers
42
views
Are there any basic Python documentation man pages?
I occasionally use Python and so I forget semantics of basic language constructs. Is there an apt package to install man page of basic Python documentation? My Linux Mint comes only with help of ...
0
votes
0
answers
28
views
Linux kernel “BUG: Bad page state / Bad page cache in process python” during PyTorch distributed training (NVidia 5090 + Ubuntu 22.04) [closed]
I’m encountering a recurring kernel memory error while running heavy PyTorch training workloads .
The system eventually becomes unstable, training stops, SSH disconnects, and the machine needs a ...
0
votes
0
answers
29
views
Packet Demodulation error in GNU Radio for Hackrf SDR - SBand Radio set up connection. [SBand Radio Tx , SDR Rx]
I have a set up in my lab. I am trying to get the S-band chain of my ground station working. My set up is described as Computer connected to a HackRf SDR via the USB and also connected to the Sband ...
2
votes
0
answers
40
views
Automatically check if my Nvidia GPU, CUDA drivers, cuDNN, Pytorch and TensorFlow are all compatible between each other?
I'd like to know if my Nvidia GPU, CUDA drivers, cuDNN, Pytorch and TensorFlow are all compatible between each other ahead of time instead of getting some less explicit error when running code such as:...
1
vote
1
answer
326
views
How can I automatically install all the pip packages used by a Python script?
I wonder how to automatically install all the pip packages used by a Python script. I know one can run:
pip install pipreqs
pipreqs .
pip install -r requirements.txt
But that sometimes fails to ...
0
votes
0
answers
41
views
firewalld corruption python-nftables command not found
this is in RHEL-8.10 x86-64
from a clean install from rhel-8.10-x86_64-dvd.iso and only using the public.xml file;
the only things I do is
# quad port nic with eno4 being my wan connection
firewall-...
-2
votes
1
answer
92
views
updating python now apt is wrecked
I am on Linux mint
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20.3
DISTRIB_CODENAME=una
DISTRIB_DESCRIPTION="Linux Mint 20.3 Una"
I wanted to update my python3 to 3.10 or higher to run ...
1
vote
0
answers
31
views
Konsole with application disappears
We develop and distribute an application that controls industrial robots (non real-time typically). We run it on Kubuntu 22.04 in a Konsole window. It is runs continuously for several months at a time....
0
votes
0
answers
71
views
Can't install python via pyenv
I already have Python installed on my WSL2, and its version is [Python 3.12.9 | packaged by conda-forge | (main, Mar 4 2025, 22:48:41) [GCC 13.3.0] on linux]. I tried to install different versions of ...
3
votes
1
answer
261
views
How to run one installed Jupyter Notebook from one venv/virtualenv environment and use packages from another venv/virtualenv?
I've set up different Python venv/virtualenv environments on my Debian 12, each with their own packages.
However, I want to use/install Jupyter Notebook only once (in just one virtual environment).
...
0
votes
0
answers
95
views
module "org.kde.kirigami" and "org.kde.desktop" not installed (On Fedora and ArchLinux)
I'm following the tutorial: A full Python + Kirigami application to learn how to build Python applications using PySide6 and Kirigami for KDE, under Arch Linux and Fedora.
This is my script:
import ...
-1
votes
1
answer
153
views
How to show all Python venvs on my server?
My command prints
>>> import sys
>>> print(sys.prefix)
/home/DEVOPSM/CodeTest_Ucar/venv
Is it possible to list all other virtual environments on Linux?
0
votes
0
answers
56
views
Remote Shell Python3 Stuck & stty raw -echo;fg Kali Linux Problem
So I've been doing CTF Tryhackme called mKingdom and got a remote shell. However, I want an upgrade of the remote terminal so I ran python3 -c 'import pty;pty.spawn("/bin/bash")' , it showed ...
0
votes
0
answers
60
views
Why does Ctrl+C clear the current input line in my Python socket-based Telnet-like shell?
I'm building a simple shell server using raw Python sockets (not using telnetlib). The client connects using PuTTY with the Telnet connection type.
The server displays a basic prompt like:
[user@...
0
votes
1
answer
81
views
Reset Python and QT5 installation for programming GUI in Python-QT
This, when trying to use pycrypto:
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
src/MD2.c:31:10: fatal error: Python.h: No such file or directory
...