Error installing and running pywin32 2.7

前端 未结 9 1336
半阙折子戏
半阙折子戏 2020-12-15 05:48

I am coming up with a couple errors after installing:

pywin32-217.win32-py2.7

I have recently upgraded ArcGIS to 10.1 and it us

相关标签:
9条回答
  • 2020-12-15 06:39

    An alternate solution is what Mark Hammond suggests on the pywin32 mailing list:

    This seems to happen if User Access Control (UAC) is disabled - is it disabled for you?

    Either way, try running "python scripts\pywin32_postinstall.py -install" from the root of the install directory and things should finish registering - that should fix the next error you see.

    This worked fine for me.

    0 讨论(0)
  • 2020-12-15 06:43

    Running from a PowerShell command as admin worked for me on Windows 10, where as a Command line prompt (as admin) failed.

    0 讨论(0)
  • 2020-12-15 06:45

    I encountered the same problem as the author. I used the script from Tim Golden python staff to print a text file. After running, there are errors like the following:

    pywintypes.error: (31, 'ShellExecute', 'A device attached to the system is not functioning.')

    My system is windows 7, 64 bit. The python is python2.7 64bit.

    I think the error has nothing to do with pywin32's installation or windows system settings. I guess the reason is the default opening software setting to .txt file. Because after I changed the default opening software from Nodepad++ to notepad, then I can print the file on my Hp printer.

    0 讨论(0)
提交回复
热议问题