您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

No module named Crypto--转

5b51 2022/1/14 8:23:57 python 字数 4205 阅读 602 来源 www.jb51.cc/python

https://blog.csdn.net/lacoucou/article/details/53152122背景:win10+python 2.7在python 中使用AES算法时,会报告上述错误,原因是Crypto并非标准模块,需要自己单独安装。安装方法:1.pip install pycropt 这中办法经常会报错:error: Microsoft Visual C++ 9.0 is required (Unable to find vcvarsall.bat). Get it from http://aka.ms/vcpython27似乎也很麻烦。2.使用编译好的安装包。下载地址:[pycropt](http://www.voidspace.org.uk/python/modules.shtml#pycrypto)根据自己的版本现在对应的安装即可。然而,安装完,或许并没有什么卵用,使用依旧报错:No module named Crypto.Cipher经过苦苦搜索,终于在stackover上找到答案:?打开链接之后请拉到最后一条回答I found the solution. Issue is probably in case sensitivity (on Windows).?Just change the name of the folder:?C:Python27Libsite-packagescrypto?to: C:Python27Libsite-packagesCrypto翻译过来就是:?把crypto文件夹重命名为Crypto。?终于可以正常使用了。

概述

https://blog.csdn.net/lacoucou/article/details/53152122

错误,原因是Crypto并非标准模块,需要自己单独安装。
安装方法

1.pip install pycropt 这中办法经常会报错:

required (Unable cpython27

似乎也很麻烦。

2.使用编译好的安装包。下载地址:

dspace.org.uk/python/modules.shtml#pycrypto)

根据自己的版本现在对应的安装即可。

然而,安装完,或许并没有什么卵用,使用依旧报错:

经过苦苦搜索,终于在stackover上找到答案: nofollow" target="_blank">打开链接之后请拉到最后一条回答

I found the solution. Issue is probably in case sensitivity (on Windows). Just change the name of the folder: C:\Python27\Lib\site-packages\crypto to: C:\Python27\Lib\site-packages\Crypto

翻译过来就是: 把crypto文件重命名为Crypto。 终于可以正常使用了。

经过苦苦搜索,终于在stackover上找到答案: nofollow" target="_blank">打开链接之后请拉到最后一条回答

I found the solution. Issue is probably in case sensitivity (on Windows). Just change the name of the folder: C:\Python27\Lib\site-packages\crypto to: C:\Python27\Lib\site-packages\Crypto

翻译过来就是: 把crypto文件重命名为Crypto。 终于可以正常使用了。

经过苦苦搜索,终于在stackover上找到答案: nofollow" target="_blank">打开链接之后请拉到最后一条回答

I found the solution. Issue is probably in case sensitivity (on Windows). Just change the name of the folder: C:\Python27\Lib\site-packages\crypto to: C:\Python27\Lib\site-packages\Crypto

翻译过来就是: 把crypto文件重命名为Crypto。 终于可以正常使用了。

总结

以上是编程之家为你收集整理的No module named Crypto--转全部内容,希望文章能够帮你解决No module named Crypto--转所遇到的程序开发问题。


如果您也喜欢它,动动您的小指点个赞吧

除非注明,文章均由 laddyq.com 整理发布,欢迎转载。

转载请注明:
链接:http://laddyq.com
来源:laddyq.com
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。


联系我
置顶