{"id":4578,"date":"2019-02-08T12:10:02","date_gmt":"2019-02-08T17:10:02","guid":{"rendered":"http:\/\/lisa.rushworth.us\/?p=4578"},"modified":"2019-02-08T12:10:02","modified_gmt":"2019-02-08T17:10:02","slug":"installing-pycrypto-on-win10-with-visual-studio-2017","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=4578","title":{"rendered":"Installing pycrypto On WIN10 with Visual Studio 2017"},"content":{"rendered":"<p>Yes, I know it&#8217;s old and no longer maintained &#8230; but it&#8217;s also what my function already uses, and I don&#8217;t want to take a few hours to get moved over to pycryptodome. You <em>can<\/em> install pycrypto on Windows 10 running Visual Studio 2017. But there&#8217;s a trick. Find the location of stdint.h in your VS installation.<\/p>\n<p>Open x86_x64 Cross Tools Command Prompt For VS 2017<\/p>\n<p>Run:<\/p>\n<pre>set CL=-FI\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Enterprise\\VC\\Tools\\MSVC\\14.14.26428\\include\\stdint.h\"<\/pre>\n<p>where the bit in quotes is the path to <em>your<\/em> stdint.h (VS build version may differ, which will change the path).<\/p>\n<p>Now, from within the Cross Tools Command Prompt, run:<\/p>\n<pre>pip install pycrypto<\/pre>\n<p>Voila &#8212; it installs:<\/p>\n<p><a href=\"http:\/\/lisa.rushworth.us\/?attachment_id=4579\" rel=\"attachment wp-att-4579\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4579\" src=\"http:\/\/lisa.rushworth.us\/wp-content\/uploads\/2019\/02\/pycrypto-vs2017-1024x251.png\" alt=\"\" width=\"960\" height=\"235\" srcset=\"https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/02\/pycrypto-vs2017-1024x251.png 1024w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/02\/pycrypto-vs2017-300x73.png 300w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/02\/pycrypto-vs2017-768x188.png 768w, https:\/\/www.rushworth.us\/lisa\/wp-content\/uploads\/2019\/02\/pycrypto-vs2017.png 1103w\" sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yes, I know it&#8217;s old and no longer maintained &#8230; but it&#8217;s also what my function already uses, and I don&#8217;t want to take a few hours to get moved over to pycryptodome. You can install pycrypto on Windows 10 running Visual Studio 2017. But there&#8217;s a trick. Find the location of stdint.h in your &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[752,751,664],"class_list":["post-4578","post","type-post","status-publish","format-standard","hentry","category-coding","tag-pip","tag-pycrypto","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4578","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4578"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4578\/revisions"}],"predecessor-version":[{"id":4580,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/4578\/revisions\/4580"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4578"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4578"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4578"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}