Larry Eitel
Larry Eitel

Reputation: 1407

fab hello returns "No module named win32api" only in virtualenv

I can run fab (fabric) in windows but not after running virtualenv/Scripts/activate.bat.

I am running ActivePython 2.7.2.5 with the latest fabric. Tried using pip and pypy in and out of virtualenv.

Any ideas why?

Upvotes: 1

Views: 806

Answers (1)

Brent Matzelle
Brent Matzelle

Reputation: 4093

I ran this command to include the missing win32api site packages:

python virtualenv.py --system-site-packages virtualenv

As Mikko mentioned, the "--system-site-packages" switch is what's needed. See the virtualenv --system-site-packages documentation for more information.

Upvotes: 0

Related Questions