Open/Save File dialog at runtime

can you help me installing pyside2 for python?like from where to run the command. i run it from python.exe in plugins but it says syntax error