{"id":8397,"date":"2018-12-27T13:56:39","date_gmt":"2018-12-27T05:56:39","guid":{"rendered":"http:\/\/jpuyy.com\/?p=8397"},"modified":"2020-03-11T11:26:41","modified_gmt":"2020-03-11T03:26:41","slug":"brew-%e5%88%87%e6%8d%a2-python-%e7%89%88%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=8397","title":{"rendered":"brew \u5207\u6362 python \u7248\u672c"},"content":{"rendered":"<p>\u5207\u6362 python \u81f3 3.6.5<\/p>\n<pre>brew list python --versions\nbrew switch python 3.6.5\n<\/pre>\n<p>\u5347\u7ea7 python3<\/p>\n<pre>brew install python3\n<\/pre>\n<p>link \u5207\u6362<\/p>\n<pre>\u279c  \u2717 brew link python\nLinking \/usr\/local\/Cellar\/python\/3.7.7... \nError: Could not symlink Frameworks\/Python.framework\/Headers\nTarget \/usr\/local\/Frameworks\/Python.framework\/Headers\nis a symlink belonging to python@2. You can unlink it:\n  brew unlink python@2\n\u89e3\u9664 python@2 link\nUnlinking \/usr\/local\/Cellar\/python@2\/2.7.17... 34 symlinks removed\n\n\nTo force the link and overwrite all conflicting files:\n  brew link --overwrite python\n\nTo list all files that would be deleted:\n  brew link --overwrite --dry-run python\n\u279c  \u2717 brew link python --overwrite python\nLinking \/usr\/local\/Cellar\/python\/3.7.7... 28 symlinks created\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5207\u6362 python \u81f3 3.6.5 brew list python &#8211;versions brew switch python 3.6.5 \u5347\u7ea7 python3 brew install python3 link \u5207\u6362 \u279c \u2717 brew link python Linking \/usr\/local\/Cellar\/python\/3.7.7&#8230; Error: Could not symlink Frameworks\/Python.framework\/Headers Target \/usr\/local\/Frameworks\/Python.framework\/Headers is a symlink belonging to python@2. You can unlink it: brew unlink python@2 \u89e3\u9664 python@2 link Unlinking \/usr\/local\/Cellar\/python@2\/2.7.17&#8230; 34 symlinks removed To [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[171,76],"tags":[],"class_list":["post-8397","post","type-post","status-publish","format-standard","hentry","category-macos","category-python"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8397","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8397"}],"version-history":[{"count":6,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8397\/revisions"}],"predecessor-version":[{"id":8737,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/8397\/revisions\/8737"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8397"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8397"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8397"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}