{"id":911,"date":"2016-09-11T22:07:47","date_gmt":"2016-09-11T13:07:47","guid":{"rendered":"https:\/\/www.agent-grow.com\/self20percent\/?p=911"},"modified":"2016-09-11T22:07:47","modified_gmt":"2016-09-11T13:07:47","slug":"centos7%e3%81%abpython3%e3%82%92yum%e3%81%a7%e5%85%a5%e3%82%8c%e3%81%a6%e3%81%bf%e3%81%be%e3%81%99%ef%be%9f%d0%b4%ef%be%9f","status":"publish","type":"post","link":"https:\/\/www.agent-grow.com\/self20percent\/2016\/09\/11\/centos7%e3%81%abpython3%e3%82%92yum%e3%81%a7%e5%85%a5%e3%82%8c%e3%81%a6%e3%81%bf%e3%81%be%e3%81%99%ef%be%9f%d0%b4%ef%be%9f\/","title":{"rendered":"CentOS7\u306bPython3\u3092Yum\u3067\u5165\u308c\u3066\u307f\u307e\u3059(\uff9f\u0434\uff9f)"},"content":{"rendered":"<p>\u5510\u7a81\u3067\u3059\u304cCentOS\u306bPython3\u3092\u5165\u308c\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u79c1\u306f\u7279\u306b\u554f\u984c\u304c\u306a\u3044\u9650\u308a\u306f3\u7cfb\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u305f\u3060\u306e\u500b\u4eba\u7684\u306a\u597d\u307f\u3067\u3059(\uff9f\u0434\uff9f)<\/p>\n<p>CentOS\u3078Pytyon3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u30b0\u30b0\u308b\u3068\u3001\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30eb\u30c9\u3059\u308b\u8a18\u4e8b\u304c\u591a\u304f\u30d2\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p>\u3067\u3059\u304c\u3001\u4eca\u56de\u306fYum\u304b\u3089\u5c0e\u5165\u3059\u308b\u624b\u9806\u3092\u30e1\u30e2\u3063\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p><!--more-->\u307e\u305a\u306f\u30d0\u30fc\u30b8\u30e7\u30f3\u78ba\u8a8d<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ python -V\r\nPython 2.7.5\r\n<\/pre>\n<p>2\u7cfb\u304c\u5165\u3063\u3066\u304a\u308a\u307e\u3059(\uff9f\u0434\uff9f)<\/p>\n<p>\u305d\u308c\u3067\u306f3\u7cfb\u3092\u5165\u308c\u307e\u3057\u3087\u3046\u3002<br \/>\n\u307e\u305a\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u8ffd\u52a0\u3067\u3059\u3002<\/p>\n<p>\u8ffd\u52a0\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u306f\u521d\u671f\u72b6\u614b\u3067\u306f\u7121\u52b9\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo yum install https:\/\/centos7.iuscommunity.org\/ius-release.rpm\r\n$ sudo sed -i -e &quot;s\/enabled=1\/enabled=0\/g&quot; \/etc\/yum.repos.d\/ius.repo\r\n<\/pre>\n<p>\u305d\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ sudo yum install python35u python35u-pip  --enablerepo=ius\r\n<\/pre>\n<p>python35u-pip\u3068\u3044\u3046\u306e\u306fpython\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3042\u308b\u3068\u4fbf\u5229\u306a\u306e\u3067\u5165\u308c\u3061\u3083\u3044\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u304a\u308f\u308a\u307e\u3057\u305f\u3089\u3001\u305f\u3068\u3048\u3070python\u3068\u5165\u529b\u3057\u3066tab\u3092\u62bc\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u30672\u7cfb\u30683\u7cfb\u304c\u5165\u3063\u3066\u308b\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ python\r\npython      python2     python2.7   python3.5   python3.5m\r\n<\/pre>\n<p>\u6700\u5f8c\u306b\u7528\u9014\u306b\u5fdc\u3058\u30662\u7cfb\u30683\u7cfb\u3092\u4f7f\u3044\u5206\u3051\u308b\u3053\u3068\u304c\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u306e\u3067VirtualEnv\u3068\u3044\u3046\u4ed5\u7d44\u307f\u3082\u5c0e\u5165\u3057\u3061\u3083\u3044\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>VirtualEnv\u306e\u4f7f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u8ffd\u3005\u30fb\u30fb\u30fb(\uff9f\u0434\uff9f)<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u3092\u307b\u3093\u306e\u6570\u884c\u5b9f\u884c\u3059\u308b\u3060\u3051\u3067\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3067\u3059\uff08\uff3e\u03c9\uff3e\uff09<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5510\u7a81\u3067\u3059\u304cCentOS\u306bPython3\u3092\u5165\u308c\u3066\u307f\u3088\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u79c1\u306f\u7279\u306b\u554f\u984c\u304c\u306a\u3044\u9650\u308a\u306f3\u7cfb\u3092\u4f7f\u3046\u3088\u3046\u306b\u3057\u3066\u304a\u308a\u307e\u3059\u3002\u305f\u3060\u306e\u500b\u4eba\u7684\u306a\u597d\u307f\u3067\u3059(\uff9f\u0434\uff9f) CentOS\u3078Pytyon3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3092\u30b0\u30b0\u308b\u3068\u3001\u30bd\u30fc [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":915,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[12,84,85],"class_list":["post-911","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech","tag-centos","tag-pytho3","tag-yum"],"jetpack_featured_media_url":"https:\/\/www.agent-grow.com\/self20percent\/wp-content\/uploads\/2016\/09\/python-logo-master-v3-TM.png","jetpack_shortlink":"https:\/\/wp.me\/p7Bq4F-eH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/911","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/comments?post=911"}],"version-history":[{"count":0,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/posts\/911\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media\/915"}],"wp:attachment":[{"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/media?parent=911"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/categories?post=911"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.agent-grow.com\/self20percent\/wp-json\/wp\/v2\/tags?post=911"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}