Thanks for posting here and welcome to the community!
How did you configure your docker setup? Are you using a custom image?
FYI - just for reference -
n8n provides Python support using Pyodide, which is a port of CPython to WebAssembly. This limits the available Python packages to the Packages included with Pyodide. We’re using pyodide v0.23.4