LoginSignup
2
3

More than 5 years have passed since last update.

Windows 環境でPycryptoをインストールする

Last updated at Posted at 2018-09-11

こちらの内容のVisual Studio Code版です。
https://qiita.com/walkure/items/09516cb711ff1c886286
Build Tools for Visual Studio 2017のC++コンパイラはすでにインストールされている前提とします。

管理権限でコマンドプロンプトを立ち上げ、VsDevCmd.batを実行します。

開発権限でコマンドプロンプトを立ち上げる方法
https://qiita.com/takuya0301/items/df6cde3bbaf9e13ef8f0
VsDevCmd.bat の場所は C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools

> cd \Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\Common7\Tools
> VsDevCmd.bat

続いて、Cコンパイラの環境変数設定のために標準ヘッダ(stdint.h)を探します。

私のときは以下の場所にありましたが、14.14.26428 の部分は人によって違います。
Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.14.26428

stdint.hの場所が分かったら以下のコマンドを実行して、環境変数を設定します。

set CL=-FI"%VCINSTALLDIR%Tools\MSVC\{14.14.26428とかそういう数字}\include\stdint.h"

たぶんこれでインストールできるはず。

2
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
3