{"id":812,"date":"2010-10-22T16:20:30","date_gmt":"2010-10-22T07:20:30","guid":{"rendered":"http:\/\/peta.okechan.net\/blog\/?p=812"},"modified":"2010-11-05T23:07:46","modified_gmt":"2010-11-05T14:07:46","slug":"macsnow-leopard%e3%81%abpython2-7%e3%82%92%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab%e3%81%97%e3%81%9f%e3%82%89%e3%82%bf%e3%83%96%e3%81%8c%e3%81%8a%e3%81%8b%e3%81%97%e3%81%8f%e3%81%aa","status":"publish","type":"post","link":"https:\/\/peta.okechan.net\/blog\/archives\/812","title":{"rendered":"Mac(Snow Leopard)\u306bPython2.7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3089\u30bf\u30d6\u304c\u304a\u304b\u3057\u304f\u306a\u3063\u305f"},"content":{"rendered":"<div style=\"margin: 1em; padding: 1em; border: 3px solid #EEAEAE; background-color: #FFEFEF;\">\n2010\/11\/05\u8ffd\u8a18<br \/>\n\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u306f\u3001Python2.7\u306e\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30bf\u30d6\u3092\u5165\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u306e\u307f\u66f8\u3044\u3066\u307e\u3059\u304c\u3001\u5f8c\u65e5\u66f8\u3044\u305f<a href=\"https:\/\/peta.okechan.net\/blog\/archives\/837\"> Mac(Snow Leopard)\u306ePython2.7\u306e\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30bf\u30d6\u3068\u65e5\u672c\u8a9e\u3092\u5165\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5 <\/a>\u3067\u3082\u3063\u3068\u7c21\u5358\u306a\u65b9\u6cd5\uff08\u3055\u3089\u306b\u65e5\u672c\u8a9e\u5165\u529b\u3082\u53ef\u80fd\uff09\u3092\u8f09\u305b\u3066\u307e\u3059\u3002\n<\/div>\n<p>\u8272\u3005\u3068\u958b\u767a\u3084\u3063\u3066\u305f\u306e\u3067\u3001Twitter\u3082\u30d6\u30ed\u30b0\u306e\u65b9\u3082\u304a\u3084\u3059\u307f\u3057\u3066\u307e\u3057\u305f\u3002<br \/>\n\u3068\u3044\u3063\u3066\u3082\u7279\u306b\u591a\u5fd9\u3060\u3063\u305f\u308f\u3051\u3067\u306f\u306a\u304f2\u65e5\u306b1\u56de\u306f\u663c\u9593\u304b\u3089\u904a\u3073\u306b\u51fa\u305f\u308a\u3001\u958b\u767a\u308218\u6642\u3068\u304b24\u6642\u304b\u3089\u8abf\u5b50\u304c\u3067\u305f\u3068\u304d\u306b\u30ac\u30c3\u3068\u592a\u304f\uff1f\u77ed\u304f\u3084\u308b\u7a0b\u5ea6\u3067\u3057\u305f\u3002<br \/>\n\u306a\u306e\u3067\u66f8\u304f\u6642\u9593\u306f\u305f\u304f\u3055\u3093\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6027\u683c\u4e0a\u306a\u3093\u304b\u66f8\u3044\u3066\u308b\u3068\u6642\u9593\u4ee5\u5916\u306b\u3082\u7cbe\u795e\u529b\u3092\u4f7f\u3046\uff08\u7279\u306bTwitter\uff09\u306e\u3067\u30a2\u30ec\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u672c\u984c\u3067\u3059\u3002<\/p>\n<p>\u958b\u767a\u306b\u306f\u4e3b\u306bMac\u3067Python\u3092\u4f7f\u3063\u3066\u307e\u3059\u3002<br \/>\n\u4eca\u307e\u3067python.org\u3058\u3083\u306a\u3044\u3069\u3053\u304b\u304c\u30d3\u30eb\u30c9\u3057\u305fNumPy\u3068\u304b\u304c\u3059\u3067\u306b\u5165\u3063\u3066\u308bPython2.6\u3092\u4f7f\u3063\u3066\u305f\u306e\u3067\u3059\u304c\u3001python.org\u914d\u5e03\u306e\u88fd\u54c1\u30d0\u30fc\u30b8\u30e7\u30f3\u304c2.7\u306b\u4e0a\u304c\u308a\u3001\u65b0\u3057\u304f\u7acb\u3066\u305f\u30b5\u30fc\u30d0\u30fc\u306b\u30822.7\u3092\u5165\u308c\u305f\u306e\u3067\u958b\u767a\u6a5f\u30822.7\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3057\u305f\u3089\u3001\u30bf\u30a4\u30c8\u30eb\u306b\u66f8\u3044\u305f\u3088\u3046\u306a\u554f\u984c\u3001\u6b63\u78ba\u306b\u306f\u3001Python\u306e\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30bf\u30d6\u30ad\u30fc\u3092\u5165\u529b\u3059\u308b\u3068\u30bf\u30d6\u304c\u5165\u529b\u3055\u308c\u305a\u3001\u4ee3\u308f\u308a\u306bGNU readline\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u88dc\u5b8c\u6a5f\u80fd\u304c\u50cd\u3044\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u554f\u984c\u304c\u8d77\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u88dc\u5b8c\u6a5f\u80fd\u304c\u50cd\u3044\u3066\u3082\u4f7f\u3044\u9053\u304c\u3042\u307e\u308a\u306a\u3044\u3067\u3059\u3057\u3001\u306a\u306b\u3088\u308a\u300c\u30a4\u30f3\u30c7\u30f3\u30c8\u306f\u30bf\u30d6\u6d3e\u300d\u306e\u81ea\u5206\u306b\u306f\u6211\u6162\u306a\u3089\u3093\u306e\u3067\u3059\u3002<\/p>\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001<a href=\"http:\/\/bugs.python.org\/issue9907\" target=\"_blank\">\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306b\u554f\u984c\u3068\u3057\u3066\u767b\u9332\u3055\u308c<\/a>\u3066\u307e\u3057\u3066\u89e3\u6c7a\u65b9\u6cd5\u3082\u66f8\u304b\u308c\u3066\u307e\u3057\u305f\u3002<br \/>\n\u82f1\u8a9e\u306e\u8aac\u660e\u306a\u306e\u3067\u3053\u3053\u306b\u65e5\u672c\u8a9e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>1. $HOME\/.pystartup \u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport readline\r\nif 'libedit' in readline.__doc__:\r\n    readline.parse_and_bind(&quot;bind ^I ed-insert&quot;)\r\n<\/pre>\n<p>2. $HOME\/.bash_profile \u306a\u3069\u306bPYTHONSTARTUP\u306e\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport PYTHONSTARTUP=$HOME\/.pystartup\r\n<\/pre>\n<p>3. \u3042\u3068\u306f source $HOME\/.bash_profile \u3068\u304b\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067\u30d0\u30c3\u30c1\u30ea\u30bf\u30d6\u304c\u5165\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u5927\u3057\u305f\u624b\u9806\u3058\u3083\u306a\u3044\u306e\u3067\u30ef\u30b6\u30ef\u30b6\u65e5\u672c\u8a9e\u3067\u8aac\u660e\u3059\u308b\u307e\u3067\u3082\u306a\u304b\u3063\u305f\u6c17\u304c\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3060\u3001\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u65e5\u672c\u8a9e\u304c\u5165\u529b\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u56f0\u3063\u3066\u306a\u3044\u306e\u3067\u653e\u7f6e\u4e2d\u3067\u3059\u3002<br \/>\n\u89e3\u6c7a\u65b9\u6cd5\u306f\u691c\u7d22\u3059\u308c\u3070\u65e5\u672c\u8a9e\u306e\u60c5\u5831\u3067\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\u3067\u3057\u3087\u3046\u3057\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<div style=\"margin: 1em; padding: 1em; border: 3px solid #EEAEAE; background-color: #FFEFEF;\">\n2010\/11\/05\u8ffd\u8a18<br \/>\n\u3053\u306e\u30a8\u30f3\u30c8\u30ea\u3067\u306f\u3001Python2.7\u306e\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30bf\u30d6\u3092\u5165\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5\u306e\u307f\u66f8\u3044\u3066\u307e\u3059\u304c\u3001\u5f8c\u65e5\u66f8\u3044\u305f<a href=\"https:\/\/peta.okechan.net\/blog\/archives\/837\"> Mac(Snow Leopard)\u306ePython2.7\u306e\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30bf\u30d6\u3068\u65e5\u672c\u8a9e\u3092\u5165\u529b\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u65b9\u6cd5 <\/a>\u3067\u3082\u3063\u3068\u7c21\u5358\u306a\u65b9\u6cd5\uff08\u3055\u3089\u306b\u65e5\u672c\u8a9e\u5165\u529b\u3082\u53ef\u80fd\uff09\u3092\u8f09\u305b\u3066\u307e\u3059\u3002\n<\/div>\n<p>\u8272\u3005\u3068\u958b\u767a\u3084\u3063\u3066\u305f\u306e\u3067\u3001Twitter\u3082\u30d6\u30ed\u30b0\u306e\u65b9\u3082\u304a\u3084\u3059\u307f\u3057\u3066\u307e\u3057\u305f\u3002<br \/>\n\u3068\u3044\u3063\u3066\u3082\u7279\u306b\u591a\u5fd9\u3060\u3063\u305f\u308f\u3051\u3067\u306f\u306a\u304f2\u65e5\u306b1\u56de\u306f\u663c\u9593\u304b\u3089\u904a\u3073\u306b\u51fa\u305f\u308a\u3001\u958b\u767a\u308218\u6642\u3068\u304b24\u6642\u304b\u3089\u8abf\u5b50\u304c\u3067\u305f\u3068\u304d\u306b\u30ac\u30c3\u3068\u592a\u304f\uff1f\u77ed\u304f\u3084\u308b\u7a0b\u5ea6\u3067\u3057\u305f\u3002<br \/>\n\u306a\u306e\u3067\u66f8\u304f\u6642\u9593\u306f\u305f\u304f\u3055\u3093\u3042\u3063\u305f\u306e\u3067\u3059\u304c\u3001\u6027\u683c\u4e0a\u306a\u3093\u304b\u66f8\u3044\u3066\u308b\u3068\u6642\u9593\u4ee5\u5916\u306b\u3082\u7cbe\u795e\u529b\u3092\u4f7f\u3046\uff08\u7279\u306bTwitter\uff09\u306e\u3067\u30a2\u30ec\u3067\u3059\u3002<\/p>\n<p>\u3055\u3066\u672c\u984c\u3067\u3059\u3002<\/p>\n<p>\u958b\u767a\u306b\u306f\u4e3b\u306bMac\u3067Python\u3092\u4f7f\u3063\u3066\u307e\u3059\u3002<br \/>\n\u4eca\u307e\u3067python.org\u3058\u3083\u306a\u3044\u3069\u3053\u304b\u304c\u30d3\u30eb\u30c9\u3057\u305fNumPy\u3068\u304b\u304c\u3059\u3067\u306b\u5165\u3063\u3066\u308bPython2.6\u3092\u4f7f\u3063\u3066\u305f\u306e\u3067\u3059\u304c\u3001python.org\u914d\u5e03\u306e\u88fd\u54c1\u30d0\u30fc\u30b8\u30e7\u30f3\u304c2.7\u306b\u4e0a\u304c\u308a\u3001\u65b0\u3057\u304f\u7acb\u3066\u305f\u30b5\u30fc\u30d0\u30fc\u306b\u30822.7\u3092\u5165\u308c\u305f\u306e\u3067\u958b\u767a\u6a5f\u30822.7\u306b\u3057\u307e\u3057\u305f\u3002<br \/>\n\u305d\u3057\u305f\u3089\u3001\u30bf\u30a4\u30c8\u30eb\u306b\u66f8\u3044\u305f\u3088\u3046\u306a\u554f\u984c\u3001\u6b63\u78ba\u306b\u306f\u3001Python\u306e\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30bf\u30d6\u30ad\u30fc\u3092\u5165\u529b\u3059\u308b\u3068\u30bf\u30d6\u304c\u5165\u529b\u3055\u308c\u305a\u3001\u4ee3\u308f\u308a\u306bGNU readline\u306e\u30d5\u30a1\u30a4\u30eb\u540d\u88dc\u5b8c\u6a5f\u80fd\u304c\u50cd\u3044\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u554f\u984c\u304c\u8d77\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u30d5\u30a1\u30a4\u30eb\u540d\u88dc\u5b8c\u6a5f\u80fd\u304c\u50cd\u3044\u3066\u3082\u4f7f\u3044\u9053\u304c\u3042\u307e\u308a\u306a\u3044\u3067\u3059\u3057\u3001\u306a\u306b\u3088\u308a\u300c\u30a4\u30f3\u30c7\u30f3\u30c8\u306f\u30bf\u30d6\u6d3e\u300d\u306e\u81ea\u5206\u306b\u306f\u6211\u6162\u306a\u3089\u3093\u306e\u3067\u3059\u3002<\/p>\n<p>\u8abf\u3079\u3066\u307f\u308b\u3068\u3001<a href=\"http:\/\/bugs.python.org\/issue9907\" target=\"_blank\">\u30aa\u30d5\u30a3\u30b7\u30e3\u30eb\u306b\u554f\u984c\u3068\u3057\u3066\u767b\u9332\u3055\u308c<\/a>\u3066\u307e\u3057\u3066\u89e3\u6c7a\u65b9\u6cd5\u3082\u66f8\u304b\u308c\u3066\u307e\u3057\u305f\u3002<br \/>\n\u82f1\u8a9e\u306e\u8aac\u660e\u306a\u306e\u3067\u3053\u3053\u306b\u65e5\u672c\u8a9e\u3067\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>1. $HOME\/.pystartup \u306b\u4ee5\u4e0b\u306e\u5185\u5bb9\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\r\nimport readline\r\nif 'libedit' in readline.__doc__:\r\n    readline.parse_and_bind(&quot;bind ^I ed-insert&quot;)\r\n<\/pre>\n<p>2. $HOME\/.bash_profile \u306a\u3069\u306bPYTHONSTARTUP\u306e\u74b0\u5883\u5909\u6570\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nexport PYTHONSTARTUP=$HOME\/.pystartup\r\n<\/pre>\n<p>3. \u3042\u3068\u306f source $HOME\/.bash_profile \u3068\u304b\u3067\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u308b\u3002<\/p>\n<p>\u3053\u308c\u3067\u30d0\u30c3\u30c1\u30ea\u30bf\u30d6\u304c\u5165\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<br \/>\n\u5927\u3057\u305f\u624b\u9806\u3058\u3083\u306a\u3044\u306e\u3067\u30ef\u30b6\u30ef\u30b6\u65e5\u672c\u8a9e\u3067\u8aac\u660e\u3059\u308b\u307e\u3067\u3082\u306a\u304b\u3063\u305f\u6c17\u304c\u3057\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n<p>\u307e\u3060\u3001\u5bfe\u8a71\u30e2\u30fc\u30c9\u3067\u65e5\u672c\u8a9e\u304c\u5165\u529b\u3067\u304d\u306a\u3044\u3068\u3044\u3046\u554f\u984c\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u306e\u3068\u3053\u308d\u56f0\u3063\u3066\u306a\u3044\u306e\u3067\u653e\u7f6e\u4e2d\u3067\u3059\u3002<br \/>\n\u89e3\u6c7a\u65b9\u6cd5\u306f\u691c\u7d22\u3059\u308c\u3070\u65e5\u672c\u8a9e\u306e\u60c5\u5831\u3067\u305f\u304f\u3055\u3093\u51fa\u3066\u304f\u308b\u3067\u3057\u3087\u3046\u3057\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32],"tags":[60],"class_list":["post-812","post","type-post","status-publish","format-standard","hentry","category-tech","tag-python"],"_links":{"self":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/comments?post=812"}],"version-history":[{"count":0,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/posts\/812\/revisions"}],"wp:attachment":[{"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/media?parent=812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/categories?post=812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/peta.okechan.net\/blog\/wp-json\/wp\/v2\/tags?post=812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}