以åã python_select ã§ä½¿ç¨ããPythonã®ãã¼ã¸ã§ã³ãåãæ¿ããæ¹æ³ãç´¹ä»ãã¾ãããä»æ¥åãæ¿ãããã¨ããæãä¸æãè¡ãã¾ããã§ããã
MacPortsã§ããã©ã«ãã§ä½¿ç¨ããPythonã®ãã¼ã¸ã§ã³ãåãæ¿ããæ¹æ³ - å¼·ç«ã§é²ã
http://d.hatena.ne.jp/nakamura001/20101228/1293554200
試ãã«MacPortsã®ãã¼ã¸ã§ã³åãæ¿ãæ©è½ã使ã£ããä¸æãè¡ã£ãã®æé ãã¡ã¢ãã¦ããã¾ãã
æé
ã¤ã³ã¹ãã¼ã«æ¸ã¿ã® python ã確èªã
$ port select --list python Available versions for python: none python24 python25-apple python26 python26-apple (active) python27
ãã£ãã®ã§ python26-apple (active) ã£ã¦ãªã£ã¦ã¾ããã念ã®çºã«ç¾å¨ãæå¹ã«ãªã£ã¦ãã python ã確èªã
$ port select --show python The currently selected version for 'python' is 'python26-apple'.
python27 ã«åãæ¿ããã
sudo port select --set python python27 Selecting 'python27' for 'python' succeeded. 'python27' is now active.
åãæ¿ãã£ã¦ããäºã確èªã
$ port select --list python Available versions for python: none python24 python25-apple python26 python26-apple python27 (active)