I installed pywin32 and pypiwin32 through pip and am able to confirm they are installed through cmd but am having problems importing win32com within PyCharm. My code very simply opens cmd as administrator thorugh the following code
import win32com.shell.shell as shell
commands = 'echo hi'
shell.ShellExecuteEx(lpVerb='runas', lpFile='cmd.exe', lpParameters='/c '+commands)
but I get the following error while trying to run the code:
ModuleNotFoundError: No module named 'win32com.shell'