For Vivado 2019.x and newer, you can use the Python version bundled with the Xilinx installation.
If you still see the error 2201220914 is an invalid argument , ensure the script was run from the base directory and not from within the patch folder itself. vivado y2k22 patch install
After running the script, the tool will report that it has added custom Tcl files to the installation locations to prevent the overflow. For Vivado 2019
This patch applies to Vivado and Vitis versions 2014.x through 2021.2 . For Vivado 2019.x and newer
You must have Python 2.7.5 or later installed.