简体   繁体   中英

win32clipboard doesn't exist?

I am very new to python, and I just decided today that I would make a program that sets something to my windows clipboard. I searched for a "how-to" and this link to a stackoverflow site came up.

I proceeded to install pywin32 and try it out for myself. However, once I tried to import win32clipboard, it gave me following error.

ImportError: DLL load failed: %1 is not a valid Win32 application.

What causes this and how can I fix it?

Go to https://sourceforge.net/projects/pywin32/files/pywin32/Build%20220/ and install the version of 'Python for Windows Extensions' appropriate for your version of Python and in consideration of whether you computer is 32- or 64-bit.

Then you can do:

import win32clipboard

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM