I have installed both virtualenv
and pywin32
on my Windows 7 64-bit laptop, and each of them seems to work, but not with each other.
More specifically, if a virtualenv is active, then running import win32com.client
in a python interactive shell fails with No module named win32com.client
. The same expression succeeds, however, if no virtualenv is active.
When I try to install pywin32
with pip
(which is how I normally install modules when a virtualenv is active), I get the error:
Could not find any downloads that satisfy the requirement pywin32
No distributions at all found for pywin32
...even though pywin32
is one of the modules listed in the output of
pip search pywin32
Therefore, to install pywin32
at all I had to install it using an *.exe installer downloaded from SourceForge.
Is there any way to install pywin32
within a virtualenv?