Installing Fabric


Installing fabric on LInux/Unix machine is quite simple:

apt-get install fabric 


aptitude install fabric


On windows the process is a bit more complex, see:

The installation page mentions the dependencies that are required, however there are a few gotchas.

1) The PyCrypto library requires a c compiler to build from sources (or a prebuilt binary), otherwise it yields this cryptic error:

error: Unable to find vcvarsall.bat

2) fabric needs a library called ecdsa


In the end these are the steps that finally worked:

  1. python 2.7 –>
  2. setuptools (easy_install) using –>
  3. pip –>
  4. PyCrypto binary —>
  5. pip: pip install ecdsa
  6. fabric : pip install fabric


We can verify the installation by running:

from fabric.api import local
def hello():
    local('echo "hello"')

Execute it:

fab -f hello


Tagged with: ,
Posted in Fabric, Python

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: