Questions tagged [python]
Python is an interpreted, general-purpose high-level programming language whose design philosophy emphasizes code readability.
2,343 questions
0 votes
0 answers
34 views
Unable to find Libcrypto on Ubuntu Docker container with Django Python
For a Django Python project, I develop in a Docker container. The oscrypto Python package I need is unable to find the Libcrypto library on the Ubuntu container. The Docker image is ubuntu:24.04. I am ...
-1 votes
2 answers
90 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 ...
2 votes
0 answers
48 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
347 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
51 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
108 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
35 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
75 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
303 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
105 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
181 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
72 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
66 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
98 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 ...
0 votes
1 answer
114 views
Force Qutebrowser to close tab and open default one when there is one tab in the window
In Qutebrowser, I try to create the following behavior: tab-close, or at least the action associated with it (i.e., pressing d), should, in all situations where more than one tab is open, close the ...