Invoke Python Method is not working for few python library

Hi @BNK
Here is my suggestion, if the Python invoke method does not work.

Open the cmd prompt and change the directory path to the python folder “cd /d C:\Program Files\Python310” and enter python.py script path and also you can add arguments at the end of the line, test it, and if works Use UiPath activities for cmd prompt automation in that you can able to send the change directory path, python.py path, and any argument values.

Try this and let me know