Sunday, 15 January 2012

python - How to install win32com module in a virtualenv? -



python - How to install win32com module in a virtualenv? -

i have installed both virtualenv , pywin32 on windows 7 64-bit laptop, , each of them seems work, not each other.

more specifically, if virtualenv active, running import win32com.client in python interactive shell fails no module named win32com.client. same look succeeds, however, if no virtualenv active.

when seek install pywin32 pip (which how install modules when virtualenv active), error:

not find donwloads satisfy requirement pywin32 no distributions @ found pywin32

...even though pywin32 1 of modules listed in output of

pip search pywin32

threfore, install pywin32 at all had install using *.exe installer downloaded sourceforge.

there way install pywin32 within virtualenv?

try this:

download directly enable virtualenv pip install --no-index --find-links:/local/dir/ somepackage

check out #8 on pip-installer.org (sorry no permalink)/

python virtualenv pywin32

No comments:

Post a Comment