You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 27, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Jan 27, 2022. It is now read-only.
unable to install/build on windows/error with Visual C++ #221
I have been trying to install/build pycrypto on my laptop and have had problems that I cannot determine a solution. My laptop is running Windows 10 and I have multiple versions of python and Visual Studio. Python versions: 2.7, 3.5 and 3.6 (plus a couple of Iron Python versions); Visual Studio 2015, 2017 Community, and 2017 Community Preview. I first tried to install into the Python 2.7 using pip. I had to add the Visual C++ for Python 2.7, but it did install using pip. Then, I went to add it to my Python 3.6 install and have not been able to figure out why it will not install. I first tried pip, but when that did not work, I checked your installation section of this github repository. It looks like a problem with Visual C++. I ended up putting the ouput of python setup.py build into a file which I have included. I got a couple of errors from the command line listed here:
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2
Can anyone advise so that I can get this installed and use it in another program? Thanks!
Activity
pfmoore commentedon Mar 20, 2017
The issue appears to be with the supplied
src\inc-msvc\stdint.hfile, which is incomplete. For Python 3.6 this isn't needed.The simplest fix is to comment out the line
from
setup.py. Obviously a "proper" fix would need to omit this conditional on the build being for Python 3.6 or later.Varbin commentedon Aug 29, 2017
Please see #238.
rjshaver commentedon Mar 24, 2018
moved to pycryptodome. Thx.
njuicsgz commentedon Jan 13, 2020
I tried to install pycryptodome, but it has other problems.
resolved by:
https://stackoverflow.com/questions/41843266/microsoft-windows-python-3-6-pycrypto-installation-error