Skip to content

Instantly share code, notes, and snippets.

@cjac
Created April 5, 2018 22:05
Show Gist options
  • Save cjac/fd6f76183182f7f41c2c57dab9d4b850 to your computer and use it in GitHub Desktop.
Save cjac/fd6f76183182f7f41c2c57dab9d4b850 to your computer and use it in GitHub Desktop.
PS C:\Users\Administrator> type .\test-pywin32.py
#try:
import msvcrt
import win32api
import win32con
mvcrt.get_osfhandle
win32api.SetHandleInformation
win32con.HANDLE_FLAG_INHERIT
#except ImportError(e):
# print \
# "you do not seem to have the pywin32 extensions installed:\n" + \
# "\tparallel (-j) builds may not work reliably with open Python files."
# print e
PS C:\Users\Administrator> python .\test-pywin32.py
Traceback (most recent call last):
File ".\test-pywin32.py", line 3, in <module>
import win32api
ImportError: DLL load failed: The specified module could not be found.
PS C:\Users\Administrator> python -m pip freeze
pypiwin32==222
pywin32==222
scons==2.5.1
You are using pip version 9.0.1, however version 9.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
PS C:\Users\Administrator>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment