Skip to content
This repository was archived by the owner on Jan 27, 2022. It is now read-only.
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

Closed

Description

@rjshaver

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!

builderror.txt

Activity

  1. pfmoore commented on Mar 20, 2017

    @pfmoore

    The issue appears to be with the supplied src\inc-msvc\stdint.h file, which is incomplete. For Python 3.6 this isn't needed.

    The simplest fix is to comment out the line

                self.compiler.include_dirs.insert(0, "src/inc-msvc/")

    from setup.py. Obviously a "proper" fix would need to omit this conditional on the build being for Python 3.6 or later.

  2. Varbin commented on Aug 29, 2017

    @Varbin

    Please see #238.

  3. rjshaver commented on Mar 24, 2018

    @rjshaver
    Author

    moved to pycryptodome. Thx.

  4. njuicsgz commented on Jan 13, 2020

    @njuicsgz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions