Kuzunoha-NEのブログ

プログラミングなどの勉強をしてます

【Python】pycryptomodexのインストール

環境

Windows 10 home
Python3.6.5

Build Tools for Visual Studio 2017インストール

visualstudio.microsoft.com

画面下部にいってTools for Visual Studio 2017を押下してBuild Tools for Visual Studio 2017をダウンロード + インストール

pycryptoのpipインストール

pycrypto

pip install pycryptoでインストールに失敗する

import Cryptoで出来ない

pycryptomode

pip install pycryptomodeでインストールできる

import Cryptoで出来ない

pycryptomodex

pip install pycryptomodexでインストールできる

import Cryptoで出来ない

import Cryptodomeで動いた!

pycryptoは死んでいる

tl;dr: PyCrypto is dead. Switch to PyCryptodome (GitHub: https://github.com/Legrandin/pycryptodome PyPi: https://pypi.python.org/pypi/pycryptodome). Do not report any new bugs here!

github.com