python-3.12 Questions

1

Python 3.12 has the type statement. How do I document the type alias properly? I tried: type Number = int | float """Represents a scalar number that is either an integer or float&quo...
Iconology asked 3/12, 2023 at 21:45

4

Solved

I have all three versions of python 3.10, 3.11 and 3.12 using homebrew. but somehow homebrew defaults to using 3.11 as the default. when i type which python3, it shows 3.11.6 as the version instead...
Malawi asked 20/10, 2023 at 14:6

1

Solved

>>> import sys >>> del sys.modules['sys'] >>> import sys >>> sys.modules Traceback (most recent call last): File "<stdin>", line 1, in <modul...
Qadi asked 3/5 at 19:5

2

Solved

After updating to Python 3.12, I get warnings about invalid escape sequence on some triple-quotes comments. Is this a new restriction? I have the habit of documenting code using triple-quoted strin...
Bettyannbettye asked 22/11, 2023 at 15:25

10

When attempting to run the GCP command line tool gcloud on MacOS with Python 3.12 the following error occurs: Traceback (most recent call last): File "/Users/<username>/google-cloud-sdk...
Byerly asked 18/10, 2023 at 13:21

6

Solved

I've installed scikit-fuzzy but when I import skfuzzy as fuzz I get an error ModuleNotFoundError: No module named 'distutils'" I already tried to pip uninstall distutils and got this output N...
Satiety asked 5/10, 2023 at 1:54

0

Decided to upgrade Python version from 3.10 to 3.11, previously we have used asynctest.TestCase which has setUp and tearDown methods and supports testing of async code. I've checked unittest.Isolat...
Corkhill asked 11/12, 2023 at 20:46

1

Solved

I am using: python: 3.12 OS: Windows 11 Home I tried to install catboost==1.2.2 I am getting this error: C:\Windows\System32>py -3 -m pip install catboost==1.2.2 Collecting catboost==1.2...
Hosea asked 15/11, 2023 at 19:31

1

When I try to import customtkinter in Python 3.12, I get the following error: File "c:\Users\judel\OneDrive\Documents\Python\main.py", line 1, in <module> import customtkint...
Papandreou asked 7/10, 2023 at 0:22
1

© 2022 - 2024 — McMap. All rights reserved.