import win32api error in Python 2.6

后端 未结 11 2718
野的像风
野的像风 2020-11-27 02:53

When running python26 under windows OS (64bits)..... I have got errors like:

import win32api\" error in Python 2.6: pywintypes26.dll

or

相关标签:
11条回答
  • 2020-11-27 03:18

    As suggested above the post install script is not run, this issue can be seen when installing from a wheel (As I encountered)

    python scripts\pywin32_postinstall.py -install
    

    If find you have this issue when installing via wheels, then installing it from here can solve the above issue.

    https://pypi.python.org/pypi/pypiwin32

    0 讨论(0)
  • 2020-11-27 03:22

    Run the installer as Administrator and it works:

    • Right click on pywin32-installer.exe
    • Choose "Run as Administrator"
    0 讨论(0)
  • 2020-11-27 03:24

    After I copy pywintypes26.dll and pythoncom26.dll from C:\Python26\Lib\site-packages\pywin32_system32 to C:\Python26\Lib\site-packages\win32 -> Solve the problem!

    0 讨论(0)
  • 2020-11-27 03:27

    I could fix this situation by removing all installed Python3.4 versions (had forgotten to uninstall 3.4.1 before installing 3.4.2), deleting C:\Python34 and after installing Python 3.4.2 pywin32-219.win32-py34.exe could be installed and called without problems. So, copying around DLLs should NOT be necessary!

    0 讨论(0)
  • 2020-11-27 03:27

    I always install the Active State Python distro which installs the win32 packages for you and gets it right.

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