{"id":1023,"date":"2018-04-18T17:15:54","date_gmt":"2018-04-18T15:15:54","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=1023"},"modified":"2018-06-04T14:55:59","modified_gmt":"2018-06-04T12:55:59","slug":"pyinstaller-with-python-3-6-and-pyside2-fails-on-windows-10","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1023","title":{"rendered":"PyInstaller with Python 3.6 and PySide2 fails on Windows 10"},"content":{"rendered":"<p>\n\tPyinstaller spits out warnings lthat it could not find libraries like api-ms-win-core-* and api-ms-win-crt-*. This leads to an executable working on windows 10, even&nbsp;on a new machine, but not on earlier versions as pyinstaller fails to bundle the needed files.\n<\/p>\n<p>\n\tThe fix is quite simple:\n<\/p>\n<ol>\n<li>\n\t\tDownload Visual Studio 2017 community from microsoft website\n\t<\/li>\n<li>\n\t\tInstall following components:<br \/>\n\t\tWindows Universal CRT SDK<br \/>\n\t\tWindows 8.1 SDK<br \/>\n\t\tVC++ 2015.3 v140 toolset for desktop<br \/>\n\t\tWindows Universal C Runtime\n\t<\/li>\n<li>\n\t\tWhen invoking pyinstaller use<br \/>\n\t\t&#8211;path &quot;C:\\Program Files (x86)\\Windows Kits\\10\\Redist\\ucrt\\DLLs\\x86&quot;\n\t<\/li>\n<\/ol>\n<p>\n\tDone \ud83d\ude42\n<\/p>\n<p>\n\twell the path is for the 32bit libraries, guess what, replace DLLs\\x86 with DLLs\\x64 when using python 64bit\n<\/p>\n<p>\n\tOR install Visual C++ 2017 Redist package on the destination machine.\n<\/p>\n<p>\n\tIf the packaged application still does not run please install the mentioned redist package<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Pyinstaller spits out warnings lthat it could not find libraries like api-ms-win-core-* and api-ms-win-crt-*. This leads to an executable working on windows 10, even&nbsp;on a new machine, but not on earlier versions as pyinstaller fails to bundle the needed files. The fix is quite simple: Download Visual Studio 2017 community from microsoft website Install following [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,9],"tags":[],"class_list":["post-1023","post","type-post","status-publish","format-standard","hentry","category-programming","category-windows"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1023"}],"version-history":[{"count":5,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1023\/revisions"}],"predecessor-version":[{"id":1030,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1023\/revisions\/1030"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}