Windows 環境で Fabric を使おうとしてハマったのでその解決方法を書いておきます。
環境
- Windows 7
- VisualStudio 2013 Express
- Python 2.7.6
- easy_installでpipインストール済み
手順
http://stackoverflow.com/questions/21829188/error-unable-to-find-vcvarsall-bat-when-installing-fabric-python-library-on
より
pip install fabric
を実行すると以下のようなエラーが出ました。
building 'Crypto.Random.OSRNG.winrandom' extension
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
error: Unable to find vcvarsall.bat
以下よりビルド済みのPyCryptoを取得してインストールします。
http://www.voidspace.org.uk/python/modules.shtml#pycrypto
もう一度fabricのインストールをたたくこと今度は成功しました。
以上