Pythonの拡張モジュールであるPyCryptoをビルドしてWindowsへインストールしようとしたところ、以下のエラーが出たため対処した時のメモを残します。 (env) >pip install pycrypto ... building 'Crypto.Random.OSRNG.winrandom' extension error: Unable to find vcvarsall.bat 環境 Windows10 x64 Python 3.5.1 32bit PyCrypto 2.6.1 Visual Studio なし 調査 このエラーの場合、Visual Studio Community 2015でVisual C++ 2015用の共通ツールをインストールすれば、ビルド・インストールできます。 vcvarsall.bat needed for python to compile