Issue 193: Can't install win32-py2.6 as of 2.1.9 update as Non-Admin
Status:  WontFix
Owner: ----
Closed:  Dec 2011
Reported by oliver.s...@gmail.com, Aug 3, 2011
What steps will reproduce the problem?
1. Download pyodbc-2.1.9.win32-py2.6.exe
2. Try to install as Non-Admin

What is the expected output? What do you see instead?
Up until 2.1.8, it was possible to install pyodbc into <pypath>\Lib\site-packages\ without admin rights. 
As of 2.1.9, I get the "Run As" / credentials dialog and can't proceed.

What version of the product are you using? On what operating system?
pyodbc-2.1.9.win32-py2.6.exe on Win XP SP3 32bit

Please provide any additional information below.
I'm working as an external consultant in corporate environments and depend on tools that work without requiring administrator rights to install and maintain.


Aug 3, 2011
Project Member #1 mkleehammer
I made a fix so it wouldn't crash on Vista/Windows 7 that I'll need to revisit.

If you have Visual Studio installed, rebuilding is easy.

You can manually copy the pyodbc.pyd file into your <python-install>\lib\site-packages directory.  The exe has a zipfile on the end, so you can use winzip or unzip.exe and extract PLATLIB/pyodbc.pyd.  You can also try renaming the .exe to .zip.
Dec 18, 2011
Project Member #2 mkleehammer
http://docs.python.org/distutils/builtdist.html

Vista User Access Control (UAC)

I have set the user-access-control option to 'auto', so it should only ask for elevation if Python was installed for all users.  One work around is to install Python just for yourself.

Unfortunately I can't remove the option since it literally crashes otherwise.

I'm going to close this for now since I can't fix it, but will try to work with distutils and see if there is a better solution for all Python packages.


Status: WontFix