{"id":9668,"date":"2024-07-30T11:18:04","date_gmt":"2024-07-30T02:18:04","guid":{"rendered":"https:\/\/www.k-in.co.jp\/niwakan\/?p=9668"},"modified":"2024-07-30T11:18:04","modified_gmt":"2024-07-30T02:18:04","slug":"macports%e3%81%a8python%e3%81%ae%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/www.k-in.co.jp\/niwakan\/archives\/2024\/07\/9668\/","title":{"rendered":"MacPorts\u3068Python\u306e\u66f4\u65b0"},"content":{"rendered":"<p>\u3044\u3064\u306e\u9593\u306b\u304b\uff08\u3068\u3044\u3046\u304b\u3001OS\u66f4\u65b0\u3057\u3066\u304b\u3089\u305a\u3063\u3068\uff09MacPorts\u306eVersion\u304c\u5408\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3002(^_^;;<br \/>\n\u306a\u306e\u3067\u66f4\u65b0\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<br \/>\n<!--more--><\/p>\n<p>\u307e\u3041\u3001\u3084\u308b\u3053\u3068\u3068\u8a00\u3063\u305f\u3089MacPorts.org\u304b\u3089dmg\u30d5\u30a1\u30a4\u30eb\u3092\u843d\u3068\u3057\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3002<br \/>\n\u4ee5\u4e0a\u3001\u7d42\u4e86\u3002<\/p>\n<p>\u305d\u308c\u304b\u3089\u3001\u4e00\u5fdc\u3001<br \/>\n<code>sudo port selfupdate<\/code><br \/>\n\u3068<br \/>\n<code>sudo port upgrade installed<\/code><br \/>\n\u3059\u308b\u3002<br \/>\n\u6642\u9593\u304c\u304b\u304b\u308b\u306e\u304c\u5224\u3063\u3066\u3044\u305f\u306e\u3067\u3001\u305d\u306e\u307e\u307e\u5e30\u308b\u3002<br \/>\n\u7fcc\u65e5\u3082\u3046\u4e00\u5ea6<br \/>\n<code>sudo port upgrade installed<\/code><br \/>\n\u3057\u3066\u30a8\u30e9\u30fc\u306e\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3002<\/p>\n<p>\u3053\u306a\u3044\u3060\u98f2\u307f\u4f1a\u3067Python\u306e\u8a71\u304c\u51fa\u3066\u3044\u305f\u306e\u3067\u3001<br \/>\n<code>python -v<\/code><br \/>\n\u3057\u305f\u3089version 3.7\u3060\u3063\u305f\u3002<br \/>\n<code>sudo port uninstall python**<\/code><br \/>\n\u305d\u306e\u5f8c\u6700\u65b0\u306e3.12\u3092\u5165\u308c\u3066\u307f\u305f\u3002<\/p>\n<p>\u73fe\u72b6\u3092\u78ba\u8a8d\u3057\u3066\u307f\u305f\u3089\u3001version 2.7\u304b\u30893.11\u307e\u3067\u305f\u304f\u3055\u3093\u5165\u3063\u3066\u3044\u305f\u3002<\/p>\n<pre class=\"lang:sh decode:true \" title=\"\/opt\/local\/bin\u306ePython\u95a2\u90231\" >cd \/opt\/local\/bin\r\n\/opt\/local\/bin\/py\r\npydoc2.7@             pygmentize-3.8@       python3.12-config@\r\npydoc3.10@            pyproject-build-3.11@ python3.12@\r\npydoc3.11@            python2.7-config@     python3.8-config@\r\npydoc3.12@            python2.7@            python3.8@\r\npydoc3.8@             python3.10-config@    python3.9-config@\r\npydoc3.9@             python3.10@           python3.9@\r\npygmentize-3.10@      python3.11-config@    pythonw2.7@\r\npygmentize-3.11@      python3.11@ \r\n<\/pre>\n<p>\u4f7f\u3063\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u7aef\u304b\u3089\u524a\u9664\u3057\u3066\u3044\u304f\u3002<br \/>\n\u306a\u3093\u3060\u304b\u5224\u3089\u3093\u3001\u4f55\u6545\u30ea\u30f3\u30af\u5148\u304c\u7121\u3044\u306e\u306b\u6b8b\u3063\u3066\u3044\u308b\u3093\u3060\uff1f<br \/>\n\u30ea\u30f3\u30af\u5148\u304c\u6b8b\u3063\u3066\u3044\u308b\u3082\u306e\u3082\u3042\u308b\u3057\u2026\u2026python3m@\u3068\u304b\u3002<br \/>\n\u4e00\u5fdc\u3001\u30ea\u30f3\u30af\u5148\u304c\u7121\u3044\u3082\u306e\u306f\u524a\u9664\u3059\u308b\u3002<\/p>\n<pre class=\"lang:sh decode:true \" title=\"\/opt\/local\/bin\u306ePython\u95a2\u90231\" >ls -l py*\r\nlrwxr-xr-x  1 root  wheel  24  7 30 10:32 pydoc@ -> \/opt\/local\/bin\/pydoc3.12\r\nlrwxr-xr-x  1 root  wheel   9  7 30 10:16 pydoc3@ -> pydoc3.12\r\nlrwxr-xr-x  1 root  wheel  74  6  8 22:05 pydoc3.12@ -> \/opt\/local\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/bin\/pydoc3.12\r\nlrwxr-xr-x  1 root  wheel  75  2  1 21:03 pygmentize-3.12@ -> \/opt\/local\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/bin\/pygmentize\r\nlrwxr-xr-x  1 root  wheel  80 11  5  2023 pyproject-build-3.11@ -> \/opt\/local\/Library\/Frameworks\/Python.framework\/Versions\/3.11\/bin\/pyproject-build\r\nlrwxr-xr-x  1 root  wheel  80 11  5  2023 pyproject-build-3.12@ -> \/opt\/local\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/bin\/pyproject-build\r\nlrwxr-xr-x  1 root  wheel  25  7 30 10:32 python@ -> \/opt\/local\/bin\/python3.12\r\nlrwxr-xr-x  1 root  wheel  32  7 30 10:32 python-config@ -> \/opt\/local\/bin\/python3.12-config\r\nlrwxr-xr-x  1 root  wheel  10  7 30 10:12 python3@ -> python3.12\r\nlrwxr-xr-x  1 root  wheel  17  7 30 10:17 python3-config@ -> python3.12-config\r\nlrwxr-xr-x  1 root  wheel  75  6  8 22:05 python3.12@ -> \/opt\/local\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/bin\/python3.12\r\nlrwxr-xr-x  1 root  wheel  82  6  8 22:05 python3.12-config@ -> \/opt\/local\/Library\/Frameworks\/Python.framework\/Versions\/3.12\/bin\/python3.12-config<\/pre>\n<p>\u6f38\u304f\u3053\u3053\u307e\u3067\u524a\u308c\u305f\u3002<br \/>\n\u307e\u3060\u6b8b\u3063\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u5927\u5206\u6e1b\u3063\u305f\u3057\u3001\u3082\u3046\u3044\u3044\u3084\u3002(^_^;;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u3064\u306e\u9593\u306b\u304b\uff08\u3068\u3044\u3046\u304b\u3001OS\u66f4\u65b0\u3057\u3066\u304b\u3089\u305a\u3063\u3068\uff09MacPorts\u306eVersion\u304c\u5408\u3063\u3066\u3044\u306a\u304b\u3063\u305f\u3002(^_^;; \u306a\u306e\u3067\u66f4\u65b0\u3059\u308b\u3053\u3068\u306b\u3057\u305f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[115],"tags":[161,222],"class_list":["post-9668","post","type-post","status-publish","format-standard","hentry","category-software","tag-macports","tag-python"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/9668","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/comments?post=9668"}],"version-history":[{"count":0,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/posts\/9668\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/media?parent=9668"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/categories?post=9668"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.k-in.co.jp\/niwakan\/wp-json\/wp\/v2\/tags?post=9668"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}