Jun-01-2020, 08:24 PM
People have been trying for years to get pywin32 to work inside a virtual environment, and it seems nobody has succeeded yet. At least, all the unanswered questions about how to do it are swamping the few questions that have received answers. I need to have my Python script use COM to communicate with an ActiveX program, and so I need win32com.client.Dispatch(), and so I need pywin32.
I've read that pypiwin32 is the currently favored module, but it depends on pywin32. I can load pywin32 into my registered copy of Python with no trouble, but I want to be able to use a virtual environment.
So how do I do it? My venv is based on the 32-bit version of Python 3.8. If I need to switch to 64 bits, I can.
I've read that pypiwin32 is the currently favored module, but it depends on pywin32. I can load pywin32 into my registered copy of Python with no trouble, but I want to be able to use a virtual environment.
So how do I do it? My venv is based on the 32-bit version of Python 3.8. If I need to switch to 64 bits, I can.