Python Forum
How to import win32api and win32con
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to import win32api and win32con
#3
Use pypiwin32 it's a newer version to get out of exe install of PyWin32 install and over to pip.
It also simply some imports.
(my_env) E:\div_code\my_env
λ pip install pypiwin32
Collecting pypiwin32
'''''
Using cached cp37m-win32.whl (8.3MB)
    100% |████████████████████████████████| 8.3MB 1.9MB/s
Installing collected packages: pywin32, pypiwin32
Successfully installed pypiwin32-223 pywin32-224

Use:
(my_env) E:\div_code\my_env
λ ptpython
>>> import win32api, win32con
# No erros

>>> win32api.DeleteFile
<built-in function DeleteFile>
Reply


Messages In This Thread
How to import win32api and win32con - by SheeppOSU - Feb-18-2019, 11:13 PM
RE: How to import win32api and win32con - by snippsat - Feb-19-2019, 12:04 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Python win32api keybd_event: How do I input a string of characters? JaneTan 3 3,844 Oct-19-2020, 04:16 AM
Last Post: deanhystad
  Win32API Troubles daaaabs 2 2,967 Mar-24-2020, 08:19 PM
Last Post: daaaabs
  how do i fix “No module named win32api” on python2.7 ? shongr2001 1 12,941 Apr-18-2019, 04:03 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020