Python Forum
Has anyone figured out how to get pywin32 into a virtual environment yet?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anyone figured out how to get pywin32 into a virtual environment yet?
#1
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.
Reply


Messages In This Thread
Has anyone figured out how to get pywin32 into a virtual environment yet? - by RobR - Jun-01-2020, 08:24 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with creating folder and "virtual environment" AudunNilsen 1 251 Mar-21-2024, 04:41 AM
Last Post: deanhystad
  Installing python packages in a virtual environment Led_Zeppelin 1 775 Aug-15-2023, 08:18 PM
Last Post: deanhystad
  Problem with virtual environment standenman 2 1,015 Feb-23-2023, 07:09 PM
Last Post: standenman
Question Virtual Environment (using VS Code) Ashcora 4 14,142 Feb-15-2023, 07:17 PM
Last Post: snippsat
  How to find PyWin32 for Python 2.1.3 Paul_Newton 9 1,711 Nov-20-2022, 09:15 PM
Last Post: Paul_Newton
  pywin32: Outlook connection ends with 'operation aborted' on one machine tstone 0 2,401 May-03-2022, 04:29 AM
Last Post: tstone
  pywin32 problems catlessness 0 1,238 Apr-01-2022, 01:04 PM
Last Post: catlessness
  How do I link the virtual environment of that project to the 3.9.2 version of python? Bryant11 1 1,381 Feb-26-2022, 11:15 AM
Last Post: Larz60+
  Project structure with a virtual environment gdbengo 1 1,449 Jan-26-2022, 03:22 PM
Last Post: snippsat
  pywin32 Illustrator Throwing Exception Error matthewsjc1 7 5,606 Aug-27-2021, 02:43 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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