installiere
Code: Select all
python3.14t -m pip install polars
Code: Select all
Collecting polars
Using cached polars-1.35.2-py3-none-any.whl.metadata (10 kB)
Collecting polars-runtime-32==1.35.2 (from polars)
Using cached polars_runtime_32-1.35.2.tar.gz (2.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Using cached polars-1.35.2-py3-none-any.whl (783 kB)
Building wheels for collected packages: polars-runtime-32
Building wheel for polars-runtime-32 (pyproject.toml) ...
Jetzt, wo ich renne
Code: Select all
python3.14t
Code: Select all
import polars
Code: Select all
:491: RuntimeWarning: The global
interpreter lock (GIL) has been enabled to load module
'_polars_runtime_32._polars_runtime_32', which has not declared
that it can run safely without the GIL. To override this behavior
and keep the GIL disabled (at your own risk), run with
PYTHON_GIL=0 or -Xgil=0.
Code: Select all
python3.14t -Xgil=0
In einigen Szenarien möchte ich jedoch, dass Polars in vielen Threads an vielen verschiedenen Daten arbeitet. In diesen Szenarien, wenn ich voreinstelle
Code: Select all
os.environ["POLARS_MAX_THREADS"] = "1"
Gibt es vor der Parallelisierung (durch die Verwendung eines Thread-Pools wie concurrent.futures.ThreadPoolExecutorCode: Select all
python3.14t -Xgil=0
Mobile version