解决Python2.7.x安装Crypto模块错误的方法

Python2.7.x 安装 Crypto 模块时遇到 no module named Crypto 错误的解决方案。适用于 Linux 系统,安装步骤如下:

  1. 下载 pycrypto-2.6.1.zip
  2. 解压文件后,在命令行中进入解压后的目录。
  3. 执行安装命令:python setup.py install

此方法已测试可用。

错误提示from Crypto import Random 但出现 no module named Crypto 错误。

安装方法适用于 Linux 环境,并已进行过实测,确保可解决问题。

zip
pycrypto-2.6.1.zip 预估大小:354个文件
file
MANIFEST.in 174B
file
PKG-INFO 666B
file
config.log 26KB
file
ACKS 1KB
file
TODO 991B
file
MD4.c 6KB
file
RIPEMD160.c 14KB
file
config.h 5KB
file
config.h 475B
file
stdint.h 2KB
file
SHA224.c 3KB
file
MD2.c 4KB
file
AES.c 60KB
file
pycrypto_compat.h 2KB
file
ARC2.c 7KB
file
Blowfish.c 6KB
file
hash_template.c 9KB
file
ARC4.c 2KB
file
winrand.c 14KB
file
stream_template.c 8KB
file
_fastmath.c 118KB
file
config.h.in 4KB
file
XOR.c 2KB
file
_counter.c 17KB
file
tomcrypt_hash.h 12KB
file
tomcrypt_pk.h 20KB
file
tomcrypt_argchk.h 977B
file
tomcrypt_pkcs.h 4KB
file
tomcrypt_mac.h 14KB
file
tomcrypt_cfg.h 4KB
file
tomcrypt_prng.h 7KB
file
tomcrypt.h 2KB
file
tomcrypt_custom.h 8KB
file
tomcrypt_math.h 17KB
file
tomcrypt_misc.h 683B
file
tomcrypt_des.c 149KB
file
tomcrypt_cipher.h 29KB
file
tomcrypt_macros.h 14KB
file
SHA384.c 4KB
file
hash_SHA2_template.c 6KB
file
block_template.c 20KB
file
DES.c 3KB
file
SHA256.c 3KB
file
DES3.c 1KB
file
_counter.h 2KB
file
Blowfish-tables.h 16KB
file
CAST.c 12KB
file
SHA512.c 4KB
file
strxor.c 6KB
file
cast5.c 24KB
file
hash_SHA2.h 3KB
file
README 4KB
file
pct-speedtest.py 8KB
file
tsu-notify.mbox 5KB
file
00INDEX 177B
file
CodeSubmissionRequirements.txt 2KB
file
LICENSE.libtom 82B
file
Robey_Pointer.asc 2KB
file
Andrew_M_Kuchling.mbox 6KB
file
Paul_Swartz.mbox 9KB
file
Mark_Moraes.mbox 13KB
file
Barry_A_Warsaw.mbox 6KB
file
Wim_Lewis.asc 2KB
file
Jeethu_Rao.mbox 13KB
file
Joris_Bontje.mbox 13KB
file
LICENSE.orig 693B
file
00INDEX 197B
file
LICENSE.python-2.2 12KB
file
COPYRIGHT 3KB
file
configure 137KB
file
setup.py 18KB
file
config.status 21KB
file
_UserFriendlyRNG.py 7KB
file
posix.py 3KB
file
__init__.py 2KB
file
fallback.py 1KB
file
nt.py 3KB
file
rng_base.py 3KB
file
__init__.py 2KB
file
FortunaGenerator.py 5KB
folder
__init__.py 文件夹
file
FortunaAccumulator.py 7KB
file
SHAd256.py 3KB
file
random.py 5KB
file
_DSA.py 3KB
file
DSA.py 13KB
file
ElGamal.py 13KB
file
_RSA.py 3KB
file
pubkey.py 8KB
file
__init__.py 2KB
file
RSA.py 29KB
file
_slowmath.py 6KB
file
PKCS1_v1_5.py 8KB
file
PKCS1_PSS.py 12KB
file
__init__.py 1KB
file
__init__.py 2KB
file
Chaffing.py 10KB
file
KDF.py 5KB
file
AllOrNothing.py 12KB
file
__init__.py 2KB
file
test_random.py 7KB
file
test__UserFriendlyRNG.py 6KB
file
test_rpoolcompat.py 2KB
file
test_posix.py 2KB
file
test_nt.py 2KB
file
test_generic.py 2KB
file
__init__.py 2KB
file
test_winrandom.py 2KB
file
test_fallback.py 2KB
file
__init__.py 2KB
file
test_FortunaAccumulator.py 8KB
file
__init__.py 2KB
file
test_FortunaGenerator.py 3KB
file
test_SHAd256.py 2KB
file
test_ElGamal.py 8KB
file
test_RSA.py 16KB
file
__init__.py 2KB
file
test_DSA.py 10KB
file
test_importKey.py 15KB
file
test_pkcs1_15.py 9KB
file
test_pkcs1_pss.py 20KB
file
__init__.py 1KB
file
st_common.py 2KB
file
__init__.py 3KB
file
test_AllOrNothing.py 3KB
file
test_chaffing.py 3KB
file
__init__.py 2KB
file
test_KDF.py 4KB
file
test_rfc1751.py 2KB
file
test_SHA.py 2KB
file
common.py 7KB
file
test_HMAC.py 8KB
file
test_SHA256.py 4KB
file
test_MD5.py 2KB
file
test_MD4.py 2KB
file
__init__.py 2KB
file
test_RIPEMD.py 3KB
file
test_SHA384.py 3KB
file
test_MD2.py 2KB
file
test_SHA224.py 3KB
file
test_SHA512.py 3KB
file
test_number.py 13KB
file
test_Counter.py 7KB
file
test_asn1.py 10KB
file
__init__.py 2KB
file
test_winrandom.py 2KB
file
common.py 16KB
file
test_ARC4.py 3KB
file
test_DES.py 15KB
file
test_pkcs1_15.py 7KB
file
test_DES3.py 15KB
file
test_pkcs1_oaep.py 17KB
file
test_Blowfish.py 6KB
file
__init__.py 2KB
file
test_ARC2.py 5KB
file
test_XOR.py 2KB
file
test_AES.py 78KB
file
test_CAST.py 2KB
file
RIPEMD.py 3KB
file
MD2.py 3KB
file
hashalgo.py 4KB
file
HMAC.py 7KB
file
SHA224.py 3KB
file
MD5.py 3KB
file
SHA256.py 3KB
file
__init__.py 2KB
file
MD4.py 3KB
file
SHA384.py 3KB
file
SHA512.py 3KB
file
SHA.py 3KB
file
pct_warnings.py 2KB
file
_number_new.py 4KB
file
randpool.py 3KB
file
py3compat.py 4KB
file
RFC1751.py 21KB
file
Counter.py 5KB
file
__init__.py 1KB
file
py21compat.py 3KB
file
number.py 93KB
file
winrandom.py 1KB
file
asn1.py 12KB
file
DES.py 4KB
file
PKCS1_v1_5.py 9KB
file
XOR.py 3KB
file
PKCS1_OAEP.py 9KB
file
blockalgo.py 12KB
file
Blowfish.py 4KB
file
AES.py 4KB
file
DES3.py 5KB
file
__init__.py 3KB
file
ARC2.py 5KB
file
CAST.py 4KB
file
ARC4.py 4KB
file
ChangeLog 24KB
file
epydoc-config 752B
file
pycrypt.rst 52KB
file
configure.ac 1KB
file
MD4.o 11KB
file
XOR.o 8KB
file
Blowfish.o 24KB
file
_fastmath.o 87KB
file
AES.o 33KB
file
SHA512.o 13KB
file
SHA384.o 13KB
file
ARC4.o 9KB
file
_counter.o 16KB
file
SHA224.o 10KB
file
ARC2.o 19KB
file
strxor.o 8KB
file
RIPEMD160.o 14KB
file
DES.o 57KB
file
SHA256.o 10KB
file
CAST.o 31KB
file
MD2.o 10KB
file
DES3.o 56KB
file
_UserFriendlyRNG.py 7KB
file
posix.py 3KB
file
__init__.py 2KB
file
fallback.py 1KB
file
nt.py 3KB
file
rng_base.py 3KB
file
__init__.py 2KB
file
FortunaGenerator.py 5KB
folder
__init__.py 文件夹
file
FortunaAccumulator.py 7KB
file
SHAd256.py 3KB
file
random.py 5KB
file
_DSA.py 3KB
file
DSA.py 13KB
file
ElGamal.py 13KB
file
_RSA.py 3KB
file
pubkey.py 8KB
file
__init__.py 2KB
file
RSA.py 29KB
file
_slowmath.py 6KB
file
_fastmath.so 78KB
file
PKCS1_v1_5.py 8KB
file
PKCS1_PSS.py 12KB
file
__init__.py 1KB
file
__init__.py 2KB
file
Chaffing.py 10KB
file
KDF.py 5KB
file
AllOrNothing.py 12KB
file
__init__.py 2KB
file
test_random.py 7KB
file
test__UserFriendlyRNG.py 6KB
file
test_rpoolcompat.py 2KB
file
test_posix.py 2KB
file
test_nt.py 2KB
file
test_generic.py 2KB
file
__init__.py 2KB
file
test_winrandom.py 2KB
file
test_fallback.py 2KB
file
__init__.py 2KB
file
test_FortunaAccumulator.py 8KB
file
__init__.py 2KB
file
test_FortunaGenerator.py 3KB
file
test_SHAd256.py 2KB
file
test_ElGamal.py 8KB
file
test_RSA.py 16KB
file
__init__.py 2KB
file
test_DSA.py 10KB
file
test_importKey.py 15KB
file
test_pkcs1_15.py 9KB
file
test_pkcs1_pss.py 20KB
file
__init__.py 1KB
file
st_common.py 2KB
file
__init__.py 3KB
file
test_AllOrNothing.py 3KB
file
test_chaffing.py 3KB
file
__init__.py 2KB
file
test_KDF.py 4KB
file
test_rfc1751.py 2KB
file
test_SHA.py 2KB
file
common.py 7KB
file
test_HMAC.py 8KB
file
test_SHA256.py 4KB
file
test_MD5.py 2KB
file
test_MD4.py 2KB
file
__init__.py 2KB
file
test_RIPEMD.py 3KB
file
test_SHA384.py 3KB
file
test_MD2.py 2KB
file
test_SHA224.py 3KB
file
test_SHA512.py 3KB
file
test_number.py 13KB
file
test_Counter.py 7KB
file
test_asn1.py 10KB
file
__init__.py 2KB
file
test_winrandom.py 2KB
file
common.py 16KB
file
test_ARC4.py 3KB
file
test_DES.py 15KB
file
test_pkcs1_15.py 7KB
file
test_DES3.py 15KB
file
test_pkcs1_oaep.py 17KB
file
test_Blowfish.py 6KB
file
__init__.py 2KB
file
test_ARC2.py 5KB
file
test_XOR.py 2KB
file
test_AES.py 78KB
file
test_CAST.py 2KB
file
_RIPEMD160.so 19KB
file
RIPEMD.py 3KB
file
MD2.py 3KB
file
hashalgo.py 4KB
file
HMAC.py 7KB
file
_MD2.so 14KB
file
SHA224.py 3KB
file
_SHA224.so 18KB
file
_SHA512.so 18KB
file
MD5.py 3KB
file
SHA256.py 3KB
file
_MD4.so 19KB
file
__init__.py 2KB
file
_SHA256.so 18KB
file
MD4.py 3KB
file
SHA384.py 3KB
file
_SHA384.so 18KB
file
SHA512.py 3KB
file
SHA.py 3KB
file
pct_warnings.py 2KB
file
_number_new.py 4KB
file
randpool.py 3KB
file
_counter.so 19KB
file
py3compat.py 4KB
file
RFC1751.py 21KB
file
Counter.py 5KB
file
__init__.py 1KB
file
strxor.so 13KB
file
py21compat.py 3KB
file
number.py 93KB
file
winrandom.py 1KB
file
asn1.py 12KB
file
_CAST.so 35KB
file
_ARC4.so 14KB
file
DES.py 4KB
file
PKCS1_v1_5.py 9KB
file
XOR.py 3KB
file
PKCS1_OAEP.py 9KB
file
_XOR.so 14KB
file
blockalgo.py 12KB
file
Blowfish.py 4KB
file
AES.py 4KB
file
_DES3.so 59KB
file
DES3.py 5KB
file
_ARC2.so 23KB
file
__init__.py 3KB
file
_DES.so 59KB
file
_Blowfish.so 27KB
file
ARC2.py 5KB
file
CAST.py 4KB
file
ARC4.py 4KB
file
_AES.so 35KB
...
zip 文件大小:1.29MB