{"id":17601,"date":"2023-04-19T17:51:13","date_gmt":"2023-04-19T08:51:13","guid":{"rendered":"https:\/\/www.ekbt.work\/?p=17601"},"modified":"2024-05-15T18:33:21","modified_gmt":"2024-05-15T09:33:21","slug":"mac%e3%81%a7python-2","status":"publish","type":"post","link":"https:\/\/ekbt.info\/?p=17601","title":{"rendered":"Python \u3067\u30c7\u30b8\u30bf\u30eb\u6642\u8a08-2"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_1 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">\u3082\u304f\u3058<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/ekbt.info\/?p=17601\/#%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF%E3%81%AE%E5%A4%89%E6%9B%B4\" >\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306e\u5909\u66f4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/ekbt.info\/?p=17601\/#Windows%E5%81%B4%E3%81%A7%E3%82%82%E3%81%84%E3%81%98%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B\" >Windows\u5074\u3067\u3082\u3044\u3058\u3063\u3066\u307f\u308b<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/ekbt.info\/?p=17601\/#%E7%B4%B0%E3%81%8B%E3%81%84%E4%BD%8D%E7%BD%AE%E8%A1%A8%E7%A4%BA%E3%81%AE%E8%A8%AD%E5%AE%9A\" >\u7d30\u304b\u3044\u4f4d\u7f6e\u8868\u793a\u306e\u8a2d\u5b9a<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"%E3%83%86%E3%82%AD%E3%82%B9%E3%83%88%E3%82%A8%E3%83%87%E3%82%A3%E3%82%BF%E3%81%AE%E5%A4%89%E6%9B%B4\"><\/span>\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306e\u5909\u66f4<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Mac\u3067\u306fPython\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306e\u306b\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u3044\u305f\u304c\u3001\u3069\u3046\u3082\u30a4\u30de\u30a4\u30c1\u306a\u306e\u3067\u3001Mac\u7528\u3067\u4f55\u304b\u306a\u3044\u304b\u3068\u63a2\u3057\u3066\u307f\u305f\u3002\u30cd\u30c3\u30c8\u3067\u63a2\u3063\u3066\u307f\u305f\u3068\u3053\u308dVisual Studio Code\u304c\u3048\u3048\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u304c\u3001Microsoft\u306b\u5e30\u308b\u306e\u3082\u306a\u3042\u3068\u3001\u4ed6\u306b\u306a\u3044\u304b\u3068Macfan\u3092\u898b\u3066\u3044\u308b\u3068CotEditor\u304c\u3048\u3048\u3068\u66f8\u3044\u3066\u3042\u3063\u305f\u306e\u3067\u3001\u65e9\u901f\u4f7f\u3063\u3066\u307f\u305f\u3002\u306a\u304b\u306a\u304b\u3048\u3048\u3088\u3046\u3060\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17602 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2023\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-10-12.44.18.png\" alt=\"\" width=\"878\" height=\"791\" \/><\/p>\n<p>Mac App Store \u304b\u3089\u30c0\u30a6\u30f3\u3067\u304d\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17603 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2023\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2023-03-10-11.54.57.png\" alt=\"\" width=\"1169\" height=\"726\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Windows%E5%81%B4%E3%81%A7%E3%82%82%E3%81%84%E3%81%98%E3%81%A3%E3%81%A6%E3%81%BF%E3%82%8B\"><\/span>Windows\u5074\u3067\u3082\u3044\u3058\u3063\u3066\u307f\u308b<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>python \u3067\u66f8\u3044\u3066\u3044\u308b\u6642\u8a08\u3002\u3053\u306e\u524d\u306f\u56f3\u5f62\uff08canvas\uff09\u3068\u3057\u3066\u6642\u523b\u3092\u8868\u793a\u3057\u3066\u3044\u305f\u304c\u3001\u30e9\u30d9\u30eb\u3067\u3082\u3044\u3044\u306e\u3067\u3001\u66f8\u304d\u76f4\u3057\u3066\u307f\u305f\u3002\u305d\u3057\u3066\u3001Windows11\u3067\u5b9f\u884c\u3057\u3066\u307f\u305f\u3002\u666e\u901a\u306b\u52d5\u304f\u3002OS\u9078\u3070\u306a\u3044python\u3044\u3044\u306a\u3042\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17604 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2023\/04\/python-tkinter_2023-03-22_195649.jpg\" alt=\"\" width=\"968\" height=\"506\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2><span class=\"ez-toc-section\" id=\"%E7%B4%B0%E3%81%8B%E3%81%84%E4%BD%8D%E7%BD%AE%E8%A1%A8%E7%A4%BA%E3%81%AE%E8%A8%AD%E5%AE%9A\"><\/span>\u7d30\u304b\u3044\u4f4d\u7f6e\u8868\u793a\u306e\u8a2d\u5b9a<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>\u3053\u306e\u524d\u304b\u3089\u30a4\u30b8\u3063\u3066\u3044\u308b\u30c7\u30b8\u30bf\u30eb\u6642\u8a08\u3001\u7d30\u304b\u3044\u8868\u793a\u4f4d\u7f6e\u3092\u8a2d\u5b9a\u3057\u305f\u3002\u30b3\u30fc\u30c9\u3082\u898b\u3084\u3059\u3044\u66f8\u304d\u65b9\u306b\u76f4\u3057\u305f\u3002\u6587\u5b57\u306f\u30e9\u30d9\u30eb\u3067\u8868\u793a\u3001\u914d\u7f6e\u306fpack\u3067\u3084\u3063\u3066\u3044\u305f\u304c\u3001place\u3067\u7d30\u3044\u4f4d\u7f6e\u306e\u6307\u5b9a\u3092\u3084\u3063\u3066\u307f\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17605 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2023\/04\/python-dclock-280361_n.jpg\" alt=\"\" width=\"1167\" height=\"998\" \/><\/p>\n<p>\u30bd\u30fc\u30b9\u3092Mac\u306b\u79fb\u3057\u3066Mac\u5074\u3067\u3082\u52d5\u4f5c\u78ba\u8a8d\u3057\u3066\u3001\u3064\u3044\u3067\u306bpyinstaller\u3067app\u5316\u3057\u3066\u304a\u3044\u305f\u3002<\/p>\n<p>pyinstaller\u306f\u3001\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b<\/p>\n<p>(base) macmini@MacmininoMini ~ % pip3 install pyinstaller<\/p>\n<p>pyinstaller\u306f\u6700\u521d\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3002<br \/>\npathlib\u306bbackport\u304c\u3042\u308b\u304b\u3089conda remove pathlib\u305b\u3088\u3068\u3002<\/p>\n<p>(base) macmini@MacmininoMini python % pyinstaller pydclock01.py &#8211;onefile &#8211;noconsole<br \/>\nThe &#8216;pathlib&#8217; package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please remove this package (located in \/Users\/macmini\/opt\/anaconda3\/lib\/python3.9\/site-packages) using<br \/>\nconda remove<br \/>\nthen try again.<\/p>\n<p>\u306a\u306e\u3067\u3001\u30ea\u30e0\u30fc\u30d6<\/p>\n<p>(base) macmini@MacmininoMini python % conda remove pathlib<\/p>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u305f\u3089\u3001\u554f\u984c\u306a\u304fapp\u5316\u3067\u304d\u305f\u3002<\/p>\n<p>Collecting package metadata (repodata.json): done<br \/>\nSolving environment: done<\/p>\n<p>## Package Plan ##<\/p>\n<p>environment location: \/Users\/macmini\/opt\/anaconda3<\/p>\n<p>removed specs:<br \/>\n&#8211; pathlib<\/p>\n<p>The following packages will be downloaded:<\/p>\n<p>package | build<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\nconda-23.1.0 | py39hecd8cb5_0 938 KB<br \/>\nconda-package-handling-2.0.2| py39hecd8cb5_0 268 KB<br \/>\nconda-package-streaming-0.7.0| py39hecd8cb5_0 28 KB<br \/>\nruamel.yaml-0.17.21 | py39hca72f7f_0 179 KB<br \/>\nruamel.yaml.clib-0.2.6 | py39hca72f7f_1 126 KB<br \/>\nzstandard-0.19.0 | py39h6c40b1e_0 452 KB<br \/>\n&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\nTotal: 1.9 MB<\/p>\n<p>The following NEW packages will be INSTALLED:<\/p>\n<p>\u2015\u2015\u2015\u3000\u4e2d\u7565\u3000\uff0d\uff0d\uff0d<\/p>\n<p>&nbsp;<\/p>\n<p>\u3053\u308c\u3067\u307e\u3042\u3001\u9aa8\u683c\u90e8\u5206\u306f\u51fa\u6765\u305f\u304b\u306a\u3002\u3042\u3068\u306f\u7d30\u304b\u3044\u6a5f\u80fd\u306e\u4f5c\u308a\u8fbc\u307f\u3060\u3002\u3069\u3046\u3044\u3046\u6a5f\u80fd\u3092\u30d7\u30e9\u30b9\u3059\u308b\u304b\u3082\u8003\u3048\u306a\u3044\u3068\u3002<\/p>\n<p>pyinstaller pydclock01.py &#8211;onefile &#8211;noconsole<br \/>\n\u3067app\u5316\u3002\u51fa\u6765\u305f\u30a2\u30a4\u30b3\u30f3\u3082\u306a\u3093\u3060\u304b\u53ef\u611b\u3044\uff01\uff01<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-17606 size-full\" src=\"https:\/\/www.ekbt.info\/wp-content\/uploads\/2023\/04\/python-dclock_781876_n.jpg\" alt=\"\" width=\"1087\" height=\"528\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>#Mac #MacMini #python #tkinter #pyinstaller<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306e\u5909\u66f4 Mac\u3067\u306fPython\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u306e\u306b\u3001\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30c3\u30c8\u3092\u4f7f\u3063\u3066\u3044\u305f\u304c\u3001\u3069\u3046\u3082\u30a4\u30de\u30a4\u30c1\u306a\u306e\u3067\u3001Mac\u7528\u3067\u4f55\u304b\u306a\u3044\u304b\u3068\u63a2\u3057\u3066\u307f\u305f\u3002\u30cd\u30c3\u30c8\u3067\u63a2\u3063\u3066\u307f\u305f\u3068\u3053\u308dVisual Studio Code\u304c\u3048 &hellip; <a href=\"https:\/\/ekbt.info\/?p=17601\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Python \u3067\u30c7\u30b8\u30bf\u30eb\u6642\u8a08-2&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":18461,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","footnotes":""},"categories":[140,8,10],"tags":[99,143,6,7,9],"class_list":["post-17601","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mac-apple","category-python","category-win-pc-web","tag-mac","tag-mac-mini","tag-pyinstaller","tag-python","tag-tkinter"],"_links":{"self":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts\/17601","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=17601"}],"version-history":[{"count":2,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts\/17601\/revisions"}],"predecessor-version":[{"id":18463,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/posts\/17601\/revisions\/18463"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=\/wp\/v2\/media\/18461"}],"wp:attachment":[{"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=17601"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17601"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ekbt.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17601"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}