{"id":4129,"date":"2023-01-01T11:06:29","date_gmt":"2023-01-01T02:06:29","guid":{"rendered":"https:\/\/alaki.co.jp\/blog\/?p=4129"},"modified":"2023-01-24T23:34:42","modified_gmt":"2023-01-24T14:34:42","slug":"mac%e3%81%abpython%e3%81%ae%e9%96%8b%e7%99%ba%e7%92%b0%e5%a2%83%e3%82%92%e4%bd%9c%e3%81%a3%e3%81%a6%e3%81%bf%e3%82%88%e3%81%86%ef%bc%81","status":"publish","type":"post","link":"http:\/\/test.alaki.co.jp\/blog\/?p=4129","title":{"rendered":"mac\u306bpython\u306e\u958b\u767a\u74b0\u5883\u3092\u4f5c\u3063\u3066\u307f\u3088\u3046\uff01"},"content":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001Web\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9685\u3067\u3059\u3002<\/p>\n<p>\u6700\u8fd1\u3001\u696d\u52d9\u52b9\u7387\u5316\u306e\u4e00\u74b0\u3067python\u3092\u4f7f\u3046\u3053\u3068\u304c\u5897\u3048\u3066\u304d\u305f\u306e\u3067\u3001\u3053\u308c\u304b\u3089\u5b9f\u969b\u306e\u696d\u52d9\u3067\u4f7f\u7528\u3057\u3066\u3044\u308bpython\u306e\u6d3b\u7528\u65b9\u6cd5\u3092\u3061\u3087\u3053\u3061\u3087\u3053\u3054\u7d39\u4ecb\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u7b2c\u4e00\u5f3e\u3068\u3057\u3066\u57fa\u672c\u4e2d\u306e\u57fa\u672c\u300c\u74b0\u5883\u69cb\u7bc9\u300d\u306e\u65b9\u6cd5\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p>Python\u516c\u5f0f\u30b5\u30a4\u30c8\u3067\u306f<a href=\"https:\/\/www.python.org\/downloads\/mac-osx\/\" target=\"_blank\">macOS\u7528\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9<\/a>\u3092\u7528\u610f\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3057\u304b\u3057\u4eca\u56de\u306f\u3001python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u5207\u308a\u66ff\u3048\u305f\u308a\u3068\u5f8c\u3005\u4fbf\u5229\u306b\u3067\u304d\u308b\u3088\u3046\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u300cHomebrew\u300d\u00a0\u3068python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30c4\u30fc\u30eb\u300cpyenv\u300d\u3092\u4f7f\u3063\u305f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806\u3092\u3054\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<h2>Homebrew\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><a href=\"https:\/\/brew.sh\/index_ja\" target=\"_blank\">Homebrew<\/a>\uff08\u30db\u30fc\u30e0\u30d6\u30eb\u30fc\u3001\u30db\u30fc\u30e0\u30d6\u30ea\u30e5\u30fc\uff09\u3068\u306f\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3068\u547c\u3070\u308c\u3001Mac OS\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306e\u7ba1\u7406\u3092\u884c\u3046\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001\u30a8\u30f3\u30bf\u30fc\u3002<\/p>\n<pre class=\"lang:default decode:true \">%\u00a0\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"<\/pre>\n<p>\u203b\u300cPassword\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u3089\u3001mac\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true code lang-sh \">% brew --version<\/pre>\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">Homebrew 3.6.5\r\nHomebrew\/homebrew-core (git revision 5ce86d71885; last commit 2022-10-14)\r\nHomebrew\/homebrew-cask (git revision c7e88a5af7; last commit 2022-10-14)<\/pre>\n<h2>pyenv\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>pyenv\u3068\u306f\u3001python\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u304c\u53ef\u80fd\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002<br \/>\npyenv\u3092\u5165\u308c\u3066\u304a\u304f\u30682\u7cfb\u30683\u7cfb\u3092\u5207\u308a\u66ff\u3048\u305f\u308a\u3001\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u6bce\u306b\u74b0\u5883\u3092\u5207\u308a\u66ff\u3048\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u7c21\u5358\u306b\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u30bf\u30fc\u30df\u30ca\u30eb\u306b\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5165\u529b\u3057\u3001\u30a8\u30f3\u30bf\u30fc\u3002<\/p>\n<pre class=\"code lang-sh\" data-lang=\"sh\" data-unlink=\"\">%\u00a0brew install pyenv<\/pre>\n<p>\u6b21\u306bpyenv\u306e\u30d1\u30b9\u3092\u901a\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u4f7f\u7528\u3057\u3066\u3044\u308bshell\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"lang:default decode:true\">echo $SHELL\r\n\/usr\/local\/bin\/zsh # &lt;- \u3053\u306e\u5834\u5408\u306fzsh\u3092\u4f7f\u3063\u3066\u3044\u308b<\/pre>\n<p>shell\u3092\u78ba\u8a8d\u3057\u305f\u3089\u300c<a href=\"https:\/\/github.com\/pyenv\/pyenv\" target=\"_blank\">GitHub &#8211; pyenv\/pyenv: Simple Python version management<\/a>\u300d\u306e\u9805\u76ee\u300cSet up your shell environment for Pyenv\u300d\u3092\u78ba\u8a8d\u3057\u3001<br \/>\n\u305d\u308c\u305e\u308c\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u30d1\u30b9\u3092\u901a\u3057\u307e\u3059\u3002<\/p>\n<p><strong>Zsh\u306e\u5834\u5408\uff1a<\/strong><\/p>\n<pre class=\"lang:default decode:true \">% echo 'export PYENV_ROOT=\"$HOME\/.pyenv\"' &gt;&gt; ~\/.zshrc\r\n% echo 'command -v pyenv &gt;\/dev\/null || export PATH=\"$PYENV_ROOT\/bin:$PATH\"' &gt;&gt; ~\/.zshrc\r\n% echo 'eval \"$(pyenv init -)\"' &gt;&gt; ~\/.zshrc<\/pre>\n<h2>python\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>pyenv\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u30ea\u30b9\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n<pre class=\"lang:default decode:true code lang-sh \">% pyenv install -l<\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u3001\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"code lang-sh\" data-lang=\"sh\" data-unlink=\"\">%\u00a0pyenv install {\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3044\u30d0\u30fc\u30b8\u30e7\u30f3}<\/pre>\n<p>python\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3067\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true code lang-sh \">% pyenv versions\r\n* system (set by \/Users\/ch3cooh\/.pyenv\/version)\r\n  {\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3}<\/pre>\n<p>*\u5370\u304c\u3064\u3044\u3066\u3044\u308b\u3082\u306e\u304c\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f7f\u7528\u3059\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u307e\u307e\u3067\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u4f7f\u3048\u306a\u3044\u305f\u3081\u4e0b\u8a18\u3067\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5207\u308a\u66ff\u3048\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"code lang-sh \" data-lang=\"sh\" data-unlink=\"\">%\u00a0pyenv global {\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3}<\/pre>\n<p>\u518d\u5ea6\u78ba\u8a8d<\/p>\n<pre class=\"lang:default decode:true code lang-sh \">% pyenv versions\r\n  system\r\n* {\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3} (set by \/Users\/ch3cooh\/.pyenv\/version)<\/pre>\n<p>\u6700\u5f8c\u306b\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067python\u30b3\u30de\u30f3\u30c9\u304c\u672c\u5f53\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u306a\u3063\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"lang:default decode:true code lang-sh\">% python --version\r\nPython {\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d0\u30fc\u30b8\u30e7\u30f3}<\/pre>\n<p>\u3053\u308c\u3067python\u306e\u958b\u767a\u74b0\u5883\u306e\u5b8c\u6210\u3067\u3059\uff01<\/p>\n<h2>\u6700\u5f8c\u306b<\/h2>\n<p>ALAKI\u3067\u306f\u3001\u3053\u308c\u304b\u3089\u3069\u3093\u3069\u3093\u6d77\u5916\u306b\u5411\u3051\u305f\u30d3\u30b8\u30cd\u30b9\u3092\u5c55\u958b\u3057\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u30af\u30ea\u30a8\u30a4\u30c6\u30a3\u30d6\u696d\u52d9\u306b\u304a\u3051\u308b\u4fee\u6b63\u4f9d\u983c\u306b\u304b\u304b\u308b\u6642\u9593\u30921\/5\u306b\u3067\u304d\u308b\u81ea\u793e\u30b5\u30fc\u30d3\u30b9\u300cMONJI\u300d\u306f\u6d77\u5916\u306e\u30e6\u30fc\u30b6\u30fc\u69d8\u306b\u3082\u597d\u8a55\u3067\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b5\u30a4\u30c8\u3088\u308a\u3001\u8d85\u76f4\u611f\u7684\u306a\u4fee\u6b63\u4f9d\u983c\u3092\u305c\u3072\u4f53\u9a13\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u25a0MONJI\u00a0\u30b5\u30fc\u30d3\u30b9\u7d39\u4ecb\u30b5\u30a4\u30c8<br \/>\n<a href=\"https:\/\/monji.tech\/ja\/\" target=\"_blank\">https:\/\/monji.tech\/ja\/<\/a><\/p>\n<p>\u307e\u305f\u6700\u8fd1\u3067\u306f\u3001\u95b2\u89a7\u3057\u3066\u3044\u308b\u30b5\u30a4\u30c8\u304b\u3089\u4fee\u6b63\u4f9d\u983c\u30921\u30af\u30ea\u30c3\u30af\u3067\u4f5c\u6210\u53ef\u80fd\u306aChrome\u62e1\u5f35\u6a5f\u80fd\u300cMONJI-izm\u300d\u3092\u30ea\u30ea\u30fc\u30b9\u3057\u307e\u3057\u305f\u3002<br \/>\n\u5f93\u6765\u306e\u8aad\u307f\u8fbc\u307f\u3068\u6bd4\u8f03\u3059\u308b\u3068\u3001\u8aad\u307f\u8fbc\u307f\u901f\u5ea6\u304c2\u500d\u306b\u9ad8\u901f\u5316\u3002\u3042\u3063\u3068\u3044\u3046\u9593\u306b\u8aad\u307f\u8fbc\u307f\u304c\u5b8c\u4e86\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u307e\u3067\u306b\u306a\u3044\u3001\u7206\u901f\u306a\u8aad\u307f\u8fbc\u307f\u3092\u4f53\u9a13\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\uff01<\/p>\n<p>\u25a0MONJI Chrome\u62e1\u5f35\u6a5f\u80fd\u300cMONJI-izm\u300d<br \/>\n<a href=\"https:\/\/chrome.google.com\/webstore\/detail\/monji-izm\/mbcmpffcfjglebcgpgecadkoopogabka?hl=ja\" target=\"_blank\">https:\/\/chrome.google.com\/<wbr \/>webstore\/detail\/<span class=\"il\">monji<\/span>&#8211;<span class=\"il\">izm<\/span>\/<wbr \/>mbcmpffcfjglebcgpgecadkoopogab<wbr \/>ka?hl=ja<br \/>\n<\/a>\u203bChrome \u30a6\u30a7\u30d6\u30b9\u30c8\u30a2\u306e\u30da\u30fc\u30b8\u304c\u958b\u304d\u307e\u3059<\/p>\n<p>ALAKI\u682a\u5f0f\u4f1a\u793e\u3067\u306f\u3001\u300cMONJI\u300d\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u30b5\u30fc\u30d3\u30b9\u3067\u4e16\u754c\u4e2d\u306b\u4fa1\u5024\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u3001\u4e00\u7dd2\u306b\u5927\u304d\u306a\u76ee\u6a19\u306b\u6311\u6226\u3059\u308b\u4ef2\u9593\u3092\u52df\u96c6\u4e2d\u3067\u3059\uff01<br \/>\n\u3055\u307e\u3056\u307e\u306a\u56fd\u3067\u3001\u3055\u307e\u3056\u307e\u306a\u4eba\u305f\u3061\u3068\u3001\u30ef\u30af\u30ef\u30af\u3059\u308b\u30d3\u30b8\u30cd\u30b9\u306b\u6311\u6226\u3057\u305f\u3044\u65b9\u306e\u3054\u5fdc\u52df\u3092\u304a\u5f85\u3061\u3057\u3066\u304a\u308a\u307e\u3059\uff01<\/p>\n<p>\u25a0ALAKI \u30ea\u30af\u30eb\u30fc\u30c8\u30b5\u30a4\u30c8<br \/>\n<a href=\"https:\/\/recruit.alaki.co.jp\/\" target=\"_blank\" data-push=\"true\" data-cat=\"\u8a18\u4e8b\u6700\u4e0b\u90e8 \u30ea\u30af\u30eb\u30fc\u30c8\u30b5\u30a4\u30c8\">https:\/\/recruit.alaki.co.jp\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<h3>\u73fe\u5834\u306e\u696d\u52d9\u30d5\u30ed\u30fc\u306b\u5bc4\u308a\u6dfb\u3063\u305fWeb\u30b7\u30b9\u30c6\u30e0\u3092\u304a\u6c42\u3081\u306a\u3089\u3001\u79c1\u305f\u3061ALAKI\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/h3>\n<p>ALAKI\u306f\u7d4c\u55b6\u8005\u69d8\u304c\u611f\u3058\u3066\u3044\u308b\u554f\u984c\u70b9\u3068\u3001\u5b9f\u969b\u306bWeb\u30b7\u30b9\u30c6\u30e0\u3092\u5229\u7528\u3055\u308c\u308b\u73fe\u5834\u30b9\u30bf\u30c3\u30d5\u69d8\u304c\u76f4\u9762\u3057\u3066\u3044\u308b\u8ab2\u984c\u3092\u3001\u5f0a\u793e\u30b7\u30b9\u30c6\u30e0\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u4e01\u5be7\u306b\u805e\u304d\u53d6\u308a\u3001\u304a\u5ba2\u69d8\u3068\u5171\u306b\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u308a\u4e0a\u3052\u3066\u3044\u304d\u307e\u3059\u3002<br \/>\n\u696d\u52d9\u6539\u5584\u304c\u5b9f\u73fe\u3067\u304d\u308bWeb\u30b7\u30b9\u30c6\u30e0\u3092\u304a\u6c42\u3081\u306e\u65b9\u306f\u3001\u662f\u975eALAKI\u306b\u3054\u76f8\u8ac7\u304f\u3060\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/alaki.co.jp\/websystem\/\">\u30fbALAKI\u306eWeb\u30b7\u30b9\u30c6\u30e0\u958b\u767a<\/a><\/p>\n<p><a href=\"https:\/\/alaki.co.jp\/lp\/cloud-ordering-system\/\">\u30fbALAKI\u306e\u30af\u30e9\u30a6\u30c9\u578b\u53d7\u767a\u6ce8\u30b7\u30b9\u30c6\u30e0<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3053\u3093\u306b\u3061\u306f\u3001Web\u30d7\u30ed\u30b0\u30e9\u30de\u306e\u9685\u3067\u3059\u3002 \u6700\u8fd1\u3001\u696d\u52d9\u52b9\u7387\u5316\u306e\u4e00\u74b0\u3067py&#46;&#46;&#46;<\/p>\n","protected":false},"author":10,"featured_media":4203,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16,19],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4129"}],"collection":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4129"}],"version-history":[{"count":35,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4129\/revisions"}],"predecessor-version":[{"id":4339,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/4129\/revisions\/4339"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=\/wp\/v2\/media\/4203"}],"wp:attachment":[{"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4129"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4129"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/test.alaki.co.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4129"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}