Category : admin

How can I get the UAC prompt to give my Python code Admin rights? I have tried this but Python 32 Bit or my Terminal just freezes: import os import sys import win32com.shell.shell as shell ASADMIN = ‘asadmin’ if sys.argv[-1] != ASADMIN: script = os.path.abspath(sys.argv[0]) params = ‘ ‘.join([script] + sys.argv[1:] + [ASADMIN]) shell.ShellExecuteEx(lbVerb=’runas’, lpFile=sys.executable, ..

Read more

So after trying to install gurobi for python C:Program Files (x86)win64>python3.8 setup.py install (as administrator using cmd) it fails with message error: could not create ‘C:Program Access is denied I asked gurobi support and they said When you have Python installed to your Program Files directory it requires admin privileges to add new packages. In ..

Read more