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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
2k views

how to integrate mobile call to a chatbot using asterisk

I am developing a voice based chatbot which can call a person and have the conversation. Currently, the chatbot uses my pc mic and speaker for input and output audio. I am trying to integrate this ...
0 votes
1 answer
3k views

EnvironmentError when installing sklearn

I used "pip install scikit-learn" to install sklearn. During the installation process, I received an error msg: ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or ...
0 votes
1 answer
30 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 ...
1 vote
2 answers
7k views

Wrong Python version returned, with correct $PATH set in ZSH

something very wrong is happening with my environment set up. As I am trying to learn, I decided to reinstall Mac OSX El Capitan on my Macbook Pro and start installing and configuring stuff from ...
0 votes
0 answers
25 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 ...
9 votes
5 answers
29k views

Ansible installed via pip3, but Ansible commands not found

I have installed Ansible via pip3, but I can't find the Ansible commands (ansible --version, ansible-playbook, etc.) Here's the listing that shows that Ansible is installed via pip3: :~# pip3 list | ...
51 votes
1 answer
61k views

What does "precompile standard library" option mean in python installation?

I am trying to understand different options in Python3 installation. What does the "Precompile Standard library" option mean in the Custom Python installation and why should it be enabled or ...
1 vote
2 answers
4k views

How to delete Python on mac completely?

I want to download only the latest version of Python and get rid of the old ones. I already deleted all the old ones I downloaded before. But when I check for Python versions in my terminal or import ...
3 votes
4 answers
19k views

Edit with IDLE missing using Windows 10

I installed Python 3.6.1 windows 64-bit. But my edit with idle is missing when I use the right click. Can somebody help? I already reinstalled a few times, but the problem still there. =(
0 votes
1 answer
4k views

Is it possible to recover a tab in Spyder

I am new on python, and by mistake I deleted my tab that I was working on. There is a way to recover all the code I wrote? I am using Spyder as the IDE.
1 vote
1 answer
276 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 /...
0 votes
1 answer
841 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
4k views

Python cannot import modules

I am running Windows 10 and python 3.6.3 Python no longer has the ability to import modules to any of my codes, including codes that previously worked. I keep getting the error that no module can be ...
2 votes
1 answer
222 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 ...
0 votes
1 answer
4k views

python3 is not recognized as an internal or external command.operable program or batch file

i have python 3.8.6 installed in my Windows 7 x64 .Whenever i try to run python3 as a command.it gives me an message stating that python3 is not recognized as an internal or external command.operable ...
1 vote
0 answers
46 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 ...
2 votes
3 answers
41k views

I'm getting an error indicating that the file path has a space in the name when installing Anaconda on Windows 10

When installing Anaconda3 2018.12 (64-bit) on Windows 10, I'm getting an error indicating that the file path has a space in the name ('Program Files' directory on my C:\ drive), and that some Conda ...
2 votes
1 answer
4k views

Install mod_wsgi on Ubuntu with Python 3.6, Apache 2.4, and Django 1.11

How do I get mod_wsgi for Apache2 that was compiled for Python 3.6.1? (or any future Python version) I am using a Python 3.6.1 virtual environment with Django 1.11 and Everything is working ...
0 votes
1 answer
6k views

sslstrip ImportError: No module named twisted.web

I can't get sslstrip to work... When I run sslstrip I get this: Traceback (most recent call last): File "/usr/local/bin/sslstrip", line 27, in <module> from twisted.web import ...
1 vote
1 answer
5k views

pip3 encountering permission errors when run outside of a virtualenv

I was in the process of installing CrackMapExec (CME) on Ubuntu this afternoon, and the CME docs suggested that I install pipx and manage the installation of CME through pipx to avoid dependency ...
0 votes
1 answer
372 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 vote
2 answers
6k views

Unable to do 'pip install version' with a Python import error - ImportError: cannot import name 'izip_longest'

I am trying to fix an error: import version ModuleNotFoundError: No module named 'version' So I tried pip install version which gave me the error below: from itertools import izip_longest ...
2 votes
1 answer
3k views

Unable to uninstall Python 3.5 on Windows

I am trying to uninstall Windows 64-bit Python version on my Windows 7 laptop, but unable to do so. It detects an installed version so it provides the option to modify, repair or uninstall. But on ...
-1 votes
1 answer
740 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
1k 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@...
0 votes
2 answers
371 views

Base64 in python3 vs python2

this is my base64 String "lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8=". In python2 the following code works print("lFKiKF2o+W/vvLqddOdv2ttxWSUX/SSZEyqcdyDDb+8=".decode('base64', 'strict')) ...
1 vote
2 answers
2k views

Python logging class not working when sending stdout to /dev/null

I have a Python 3 script that has logging enabled (for debugging purposes). Whenever I run/execute this script it is working fine and the logfiles are created. I've also created a setup.sh-bash ...
2 votes
1 answer
947 views

Ansible - How to create dynamic inventory that fetches hosts from microsoft AD

I am using Ubuntu as a control-node, and would like to get the hosts from my domain controller (windows server 2022), the LDAP-Inventory Guide & microsoft.ad.ldap inventory – Inventory plugin for ...
0 votes
1 answer
2k views

Error while running python3-fail2ban with "PY_SSIZE_T_CLEAN macro must be defined for '#' formats"

I'm trying to run the python3-fail2ban component built by yocto, but I'm encountering an error related to the PY_SSIZE_T_CLEAN macro. The error message is PY_SSIZE_T_CLEAN macro must be defined for '#'...
3 votes
1 answer
918 views

Why doesn't the winget package of python include python3.exe?

The community-accepted solution for including a shebang line for Python seems to be to use #!/usr/bin/env python3. However, when I install Python 3 using the winget package (i.e. winget install --id ...
8 votes
4 answers
35k views

qtpy.PythonQtError: No Qt bindings could be found

I had anaconda running on my machine. few days ago i had to update some of the libraries because they were outdated. after the update, I was not able to launch anaconda-navigator or spyder anymore due ...
1 vote
1 answer
2k views

Can't install wxPython by using pip on a Python 3.10.11 installation

I've recently installed Python 3.10.11 on openSuSE 15.4 from source as the Python version, which comes with SuSE, had proved too old (3.6). Now I need to add several modules, of which one is wxPython&...
0 votes
0 answers
55 views

GIT CI/CD failure with Python3.11

I'm running into an interesting situation. I have a machine that I'm doing some development on in RUST primarily, but there are a few scripts that we are doing in Python. For different purposes, but ...
0 votes
1 answer
52 views

Regex: Select string without Search/Replace

I have many lines like this: <i class="fa fa-angle-right font-14 color-blue mr-1"></i> Books To Read <span>30</span> <i class="fa fa-angle-right font-14 color-...
0 votes
2 answers
2k views

Python update broke `apt-listchanges`, completely breaking apt & dpkg

OS: Debian 11 OG Python vertion: 3.9 I updated python to 3.10 and did update-alternatives, after which on running pip i got the error: E: Sub-process /usr/bin/apt-listchanges --apt || test $? -ne 10 ...
5 votes
1 answer
6k views

How to remove/uninstall corrupted winget package?

When I run winget list python I get that Python.Python.3 is installed by winget; however, running python says the executable is missing. winget uninstall --id Python.Python.3 runs the uninstaller but ...
0 votes
1 answer
851 views

How to install python packages in an unstable connection

I've been trying to install tensorflow but without success. I suspect the reason is unstable internet connection because I was able to successfully install a smaller package (openCV) minutes before ...
0 votes
0 answers
35 views

Task Scheduler running a Program incorrectly

I have created a python exe that copies data from a NAS to a external HDD. This is on a Windows sever 2012 and the NAS and External is accessible to use. Also using the user account with full admin ...
1 vote
1 answer
2k views

How to overcome a missing msvcrt module when installing Python 3 from source on OpenSuSE Linux?

In order to test a fresh version of a Python app, I need to install the last stable version of Python on my OpenSuSE 15.4 machine /* which by default comes with Python 3.6 */. So I downloaded Python 3....
37 votes
13 answers
56k views

How do I install vim on OSX with Python 3 support?

In the google searches I've done, the command I should be using is brew install vim --with-python3, which succeeds without error, but then vim --version reports Python 3 as unavailable. k162:~ asday$ ...
0 votes
1 answer
19 views

Running paparzzi UAV in git bash

I got this error when trying to running paparazzi UAV in git bash. can anyone help me solve this problem ? /usr/bin/env: ‘/usr/bin/python3’: No such file or directory
-2 votes
1 answer
540 views

CMD/Python: Guess your .docx or .txt file's encoding

Ok, I want to find out, what kind of files I have, for encoding. I tried to read the file with encoding='UTF-8' and it failed, which indicates that the document is not utf8-encoded. Of course, I could ...
0 votes
1 answer
830 views

uefi shell - download a file via https

I am experimenting with uefi shell from and I wish to implement the following scenario : boot into uefi shell download a a startup.nsh script from https remote resource run the downloaded startup.nsh ...
2 votes
2 answers
42k views

Installed Python, but cannot run `pip`

I installed Python 3.7.3 on Windows 10. From the command line, if I enter pip I get: Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'pip' is not ...
0 votes
0 answers
2k views

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. [ Raspberry Pi Python 3.10.9 ]

I am using a raspberry pi and trying to update from Python3.9 to Python3.10.9 I use the following commands: sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev ...
1 vote
2 answers
20k views

Why am I getting "command not found" error on my VS?

/bin/sh: python3.11.1: command not found [Done] exited with code=127 in 0.003 seconds I am using VS for macOS.
2 votes
2 answers
8k views

Error with SSL certificate when using Python shell

I get errors when I use Python's requests.get to get info from any site: Traceback (most recent call last): File "C:\Users\ADMIN\AppData\Local\Programs\Python\Python37\lib\site-packages\urllib3\...
1 vote
1 answer
8k views

Installing Python 3.10+ on WSL2 Debian Distro

I'm fairly new to Linux distros. I have Debian downloaded and running in my Windows 10 WSL2 environment. I want to install a specific version of Python - 3.10 or latest 3.11 on it. How can I do that?...
1 vote
1 answer
10k views

this package is broken python3-dev

Whenever I install something that requires python3-dev it shows this message: The following packages have unmet dependencies: python3-dev: Depends: python3 (= 3.6.7-1~18.04) but 3.6.7-1~18.04 is ...
1 vote
0 answers
124 views

Sublime Text 4 sql highlight inside a string

Currently, if I have sql commands inside a python string, Sublime Text highlights it. However if it's an "f string", it does not recognize the sql inside. Is there any way to make it work ...

1
2 3 4 5
7