Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用提升的权限运行Pyinstaller EXE文件_Python_Subprocess_Pyqt5_Pyinstaller_Elevated Privileges - Fatal编程技术网

Python 使用提升的权限运行Pyinstaller EXE文件

Python 使用提升的权限运行Pyinstaller EXE文件,python,subprocess,pyqt5,pyinstaller,elevated-privileges,Python,Subprocess,Pyqt5,Pyinstaller,Elevated Privileges,我正在编写一个pyqt应用程序,它需要在所有机器上以管理员身份运行一些子进程命令。我更愿意以提升的权限开始我的脚本。我已经检查了stackoverflow中所有可能的答案,但还没有找到解决方案。当我运行每个人都提出的isAdmin()代码时,我收到了无限多cmd.exe的垃圾邮件,而没有其他任何事情发生。有人能给出一个解决方案吗

我正在编写一个pyqt应用程序,它需要在所有机器上以管理员身份运行一些子进程命令。我更愿意以提升的权限开始我的脚本。我已经检查了stackoverflow中所有可能的答案,但还没有找到解决方案。当我运行每个人都提出的isAdmin()代码时,我收到了无限多cmd.exe的垃圾邮件,而没有其他任何事情发生。有人能给出一个解决方案吗