python3.6でpycryptoをインストールする際にはまったのでメモ...
windows環境はエラーします。mac環境はエラーはしない。。
python3.6にpycryptoをインストールするとエラーになる時の解消法
$ pip install pycrypto 上記コマンドをインストールしようとするとエラーが...
ビルドツールのインストールが必要
- 「Visual Studio Build Tools 2017」をインストールする必要がある
- Visual C++ Build Toolsをインストール
- ビルドしている際に以下の「inttypes.h」ファイルの構造体でエラーが発生する
- 対処は#defineで定義して回避
- これでインストールがとりあえず可能になる
> notepad 'C:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt\inttypes.h' ================================================ typedef struct { #define intmax_t long long ### これを追記 #define uintmax_t unsigned long long ### これを追記 intmax_t quot; intmax_t rem; } _Lldiv_t; typedef _Lldiv_t imaxdiv_t; ================================================
https://qiita.com/ftakao2007/items/e7f951de98509929bdfb https://www.python.jp/install/windows/install_vstools2017.html