Questions tagged [python3]
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 (http://www.stackoverflow.com) instead.
328
questions
0
votes
0
answers
14
views
disable and enable power monitor usb via cmd
I am using power monitor to test current, and I want to do some simple testing via automated commands
Before test, I need to send some cmd to machine via usb, then the current test need remove usb(...
0
votes
0
answers
22
views
Upgraded Ansible with Python 3.8 but playbooks are now way slower that with python2.7, how to address slowdown?
When we were running RHEL7 our playbooks used to complete in about 1 hour with ansible-2.9.27-1.el7.noarch.rpm w/ python 2.7 + mitogen.
Last year we upgraded to RHEL8 w/ python 3.8 and ansible-5.4 + ...
0
votes
0
answers
48
views
Rocky Linux Install Python Packages for all users
I am trying to install python3.11 and some packages for all users in system using Rocky Linux.
I was able to install python3.11 and its accessible by all users in the system. However when trying to ...
0
votes
0
answers
27
views
Docker build succeeds on one system but not on other
System info
I've been Dockerizing an application on System A, which is a Debian 12 clean installation, AMD64 architecture. The system info:
Linux debian12.localdomain 6.1.0-17-amd64 #1 SMP ...
0
votes
0
answers
58
views
AutoComplete in Python Terminal
How to enable AutoComplete/ suggestions in Python Terminal, when launched?
Like PSReadline in PowerShell, or Command Prompt with Clink installed.
I tried to install autocomplete, but there has been no ...
0
votes
0
answers
158
views
gpg decrypt giving blank output
In Python, trying to decrypt a file using gnupg.
Using 'import gnupg'. (NOT python-gnupg).
Getting error message - (gnupg:FAILURE status emitted from gpg process: decrypt 4294967295") AND its not ...
0
votes
1
answer
125
views
Split a large gz compressed file into smaller compressed file gz
My requirement is to load a gz file from gcs to BQ. I am using python and Airflow but it is throwing an error that if a single compressed file size is greater than 5 GB, then we can't load it. I have ...
0
votes
1
answer
58
views
Unable to select latest python version in PyCharm Fedora 39
I recently switched to using Fedora 39. I installed PyCharm Community Edition and started with and found that I can not switch to the latest python version.
$ python --version
Python 3.12.1
In the ...
3
votes
1
answer
508
views
ttyUSB serial device not being created in Ubuntu18.04
I'm trying to get a USB serial device ( a GlobalSat BU-353N5 USB GPS ) up and working on an Ubuntu 18.04 PC running as a VMWare VM. I have USB pass thru enabled and I can see the device appear and ...
1
vote
0
answers
54
views
Quickly retreive 512px image thumbnail/preview from 10GB+ PSB on MacOS?
Is it possible to quickly (milliseconds) extract a 512px image thumbnail/preview from large images (10GB+ PSBs) on MacOS?
Use Case
I need to quickly get an image preview/thumbnail (~512px) of a batch ...
0
votes
1
answer
1k
views
conda create --name doc-env python==3.10 but the version installed remains 3.18
I try to install python 3.7 with conda but every time I seem to get python 3.11. Then I tried to explicitly specify the channel with conda create --name doc-env python=3.10 -c conda-forge I noticed ...
0
votes
1
answer
864
views
(venv) prefix on bash terminal prompt in all directories
I was initially very happy to see my terminal prompt prefixed with (venv) because I was inside the folder where I am learning python, and in that folder, I created a ./venv folder to hold my virtual ...
-1
votes
1
answer
950
views
Add python.exe to the path on Windows
My Windows 10 has Python 2.7 installed. I don't have admin privileges' and can't un-install it.
I installed Python 3 now. Hence I have 2 versions ... but I want that default be Python 3.
I created ...
0
votes
1
answer
2k
views
Update Python3 to new installed version on Ubuntu 18.04
Tried searching with several strategies but am not finding an effective answer. I just installed Python-3.11.5 to a directory under my "home" directory. When I am in Terminal and type
me@...
1
vote
1
answer
436
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
/...