Windows 10家庭中文版,Python 3.6.4,
180824测试前端加密文本在后台揭秘,查询后发现,可以使用pycrypto模块实现,那么,安装它(pip),结果安装失败了。
本文暂时记录下失败的日志,后面找到解决问题了再完善博文。
pycrypto相关网址:
PyPI:https://pypi.org/project/pycrypto/
官网:https://www.dlitz.net/software/pycrypto/
官文:https://www.dlitz.net/software/pycrypto/api/current/
使用pip list,没有找到pycrypto,那么,安装它。
>pip3 install pycrypto
下面是安装过程日志中的部分错误信息:
...
Running setup.py bdist_wheel for pycrypto ... error
Complete output from command c:\python36\python3.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\log\\AppData\\Local\\Temp\\pip-install-0e9wj35t\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\log\AppData\Local\Temp\pip-wheel-i1adunc1 --python-tag cp36:
...
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
...
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Isrc/ -Isrc/inc-msvc/ -Ic:\python36\include -Ic:\python36\include "-IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\8.1\include\shared" "-IC:\Program Files (x86)\Windows Kits\8.1\include\um" "-IC:\Program Files (x86)\Windows Kits\8.1\include\winrt" /Tcsrc/winrand.c /Fobuild\temp.win-amd64-3.6\Release\src/winrand.obj
winrand