<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>The best way to install pycrypto is not to (it hasn't been updated since 2013).<br /><br />Instead, use the drop-in replacement pycryptodome! See the docs for more information and where to find support for it if needed.<br /><br /><a href="https://www.pycryptodome.org/en/latest/">https://www.pycryptodome.org/en/latest/</a></p>
<p><br /></p>
<div id="signature"> </div>
<p><br /></p>
<p id="reply-intro">On 2020-07-14 22:58, 天上火 wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">macOS: 
<div>pip3 install pycrypto</div>
<div> </div>
<div> fatal error: 'gmp.h' file not found?</div>
<div> </div>
<div> </div>
<div>Error message:</div>
<div><span style="caret-color: #ed0d00; color: #ed0d00; font-family: Menlo; font-size: 11px;">///////////////////////////////////</span></div>
<div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">xcrun -sdk macosx clang -arch x86_64 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -fwrapv -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/Headers -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.7/include/python3.7m -c src/_fastmath.c -o build/temp.macosx-10.14-x86_64-3.7/src/_fastmath.o</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">    src/_fastmath.c:36:11: fatal error: 'gmp.h' file not found</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">    # include <gmp.h></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">              ^~~~~~~</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">    1 error generated.</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">    error: command 'xcrun' failed with exit status 1</span></div>
</div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;"> </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;"> </span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;">///////////////////////////////////</span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"> </div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="caret-color: #000000; color: #000000; font-family: Helvetica; font-size: 12px;">How to install pycrypto ?</span></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="caret-color: #000000; color: #000000; font-family: Helvetica; font-size: 12px;"> </span></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="caret-color: #000000; color: #000000; font-family: Helvetica; font-size: 12px;"> </span></span></div>
<div style="margin: 0px; font-stretch: normal; font-size: 11px; line-height: normal; font-family: Menlo; color: #ff4c38;"><span style="font-variant-ligatures: no-common-ligatures;"><span style="caret-color: #000000; color: #000000; font-family: Helvetica; font-size: 12px;">--------------------------------------------------</span></span></div>
<div style="margin: 0px; font-stretch: normal; line-height: normal;"><span style="color: #000000;"><span style="caret-color: #000000;">Best regards</span></span></div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />pycrypto mailing list<br /><a href="mailto:pycrypto@lists.dlitz.net">pycrypto@lists.dlitz.net</a><br /><a href="http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto" target="_blank" rel="noopener noreferrer">http://lists.dlitz.net/cgi-bin/mailman/listinfo/pycrypto</a></div>
</blockquote>
</body></html>