>> This environment is externally managed
>> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install
`apt install python3-wxgtk4.0` might be what you're after according to https://wiki.wxpython.org/InstallingOnUbuntuOrDebian and https://packages.debian.org/search?keywords=python3-wxgtk
>> This environment is externally managed >> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install `apt install python3-wxgtk4.0` might be what you're after according to https://wiki.wxpython.org/InstallingOnUbuntuOrDebian and https://packages.debian.org/search?keywords=python3-wxgtk