{"id":4219,"date":"2016-06-21T00:02:56","date_gmt":"2016-06-20T15:02:56","guid":{"rendered":"http:\/\/www.magtranetwork.com\/?p=4219"},"modified":"2016-06-20T21:34:57","modified_gmt":"2016-06-20T12:34:57","slug":"python_pip_manual","status":"publish","type":"post","link":"https:\/\/www.magtranetwork.com\/aws\/python_pip_manual.html","title":{"rendered":"Python\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0pip\u3092\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3001pip\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30fb\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u4e00\u89a7\u8868\u793a\u3001\u4e00\u89a7\u4fdd\u5b58\u3001\u4e00\u89a7\u304b\u3089\u306e\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u4e00\u62ec\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30fb\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9)"},"content":{"rendered":"

AWS\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9(AWS CLI)\u3092\u306f\u3058\u3081\u3001Python\u3092\u7528\u3044\u3066\u958b\u767a\u3055\u308c\u3066\u3044\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u8fd1\u5e74\u3055\u3089\u306b\u5897\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u3068\u3044\u3046\u306e\u3082\u65e5\u672c\u3067\u306f\u65e5\u672c\u4eba\u304c\u958b\u767a\u3057\u305f\u3068\u3044\u3046\u7d4c\u7def\u3082\u3042\u308aRuby\u3001Ruby on Rails\u304c\u30b7\u30a7\u30a2\u3092\u5e83\u304f\u5360\u3081\u3066\u3044\u307e\u3059\u304c\u3001\u6b27\u7c73\u3067\u306fPython\u304c\u5e83\u304f\u666e\u53ca\u3057\u3066\u304a\u308a\u3001\u5916\u8cc7\u7cfbIT\u4f01\u696d\u306e\u958b\u767a\u7269\u3092\u4e2d\u5fc3\u306bPython\u304c\u63a1\u7528\u3055\u308c\u308b\u3053\u3068\u304c\u591a\u3044\u305f\u3081\u3067\u3059\u3002<\/p>\n

\u4eca\u56de\u306f\u3053\u308c\u304b\u3089\u30b0\u30ed\u30fc\u30d0\u30eb\u5316\u306e\u4e2d\u3067\u65e5\u672c\u3067\u3082\u307e\u3059\u307e\u3059\u4f7f\u7528\u3059\u308b\u6a5f\u4f1a\u304c\u591a\u304f\u306a\u3063\u3066\u304f\u308bPython\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0pip\u306b\u3064\u3044\u3066\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u3084\u57fa\u672c\u7684\u306a\u4f7f\u7528\u65b9\u6cd5\u3092\u5099\u5fd8\u9332\u3068\u3057\u3066\u8a18\u8f09\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

Python\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0pip\u3092\u7c21\u5358\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3001pip\u306e\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9(\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30fb\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3001\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u4e00\u89a7\u8868\u793a\u3001\u4e00\u89a7\u4fdd\u5b58\u3001\u4e00\u89a7\u304b\u3089\u306e\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3001\u4e00\u62ec\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u30fb\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9)<\/h2>\n

pip\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/h3>\n

\u4e0b\u8a18\u306e\u30b3\u30de\u30f3\u30c9\u3092Linux\u3001Mac OS X\u306a\u3069\u306eUnix\u74b0\u5883\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067pip\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u307e\u3059\u3002<\/p>\n

\r\ncurl -kL https:\/\/bootstrap.pypa.io\/get-pip.py | python\r\n<\/pre>\n

\u203b\u4ee5\u524d\u306f\u4e0b\u8a18\u3067\u3057\u305f\u304c\u914d\u5e03\u5834\u6240\u306eURL\u304c\u5909\u66f4\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n

\r\ncurl -kL https:\/\/raw.github.com\/pypa\/pip\/master\/contrib\/get-pip.py | python\r\n<\/pre>\n

pip\u306e\u4e3b\u306a\u4f7f\u3044\u65b9<\/h3>\n

\u3053\u3053\u3067\u306fpip\u306e\u4e3b\u306a\u4f7f\u3044\u65b9\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n

pip\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u4f7f\u7528\u3057\u3066\u958b\u767a\u3059\u308b\u969b\u306a\u3069\u306b\u77e5\u3063\u3066\u304a\u304f\u3068\u4fbf\u5229\u306apip\u30b3\u30de\u30f3\u30c9\u306e\u4f7f\u3044\u65b9\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n

\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4f8b\u306fAWS\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9(AWS CLI)\u306e\u300cawscli\u300d\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n

\u500b\u5225\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u6271\u3046\u5834\u5408\u306fawscli\u306e\u90e8\u5206\u3092\u5fc5\u8981\u306a\u30d1\u30c3\u30b1\u30fc\u30b8\u540d\u306b\u7f6e\u304d\u63db\u3048\u3066\u3054\u4f7f\u7528\u304f\u3060\u3055\u3044\u3002<\/p>\n

pip\u306b\u3088\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n

\r\npip install awscli\r\n<\/pre>\n

pip\u306b\u3088\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9(\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8)<\/strong><\/p>\n

\r\npip install awscli --upgrade\r\n<\/pre>\n

pip\u306b\u3088\u308b\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a2\u30f3\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n

\r\npip uninstall awscli\r\n<\/pre>\n

pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u306e\u8868\u793a<\/strong><\/p>\n

\r\npip freeze\r\n<\/pre>\n

pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3078\u306e\u4fdd\u5b58<\/strong><\/p>\n

\r\npip freeze > pip_freeze.txt\r\n<\/pre>\n

pip freeze\u3067\u51fa\u529b\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u4e00\u89a7\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u4e00\u62ec\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/strong><\/p>\n

\r\npip install -r pip_freeze.txt\r\n<\/pre>\n

pip\u672c\u4f53\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9(\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8)<\/strong><\/p>\n

\r\npip install pip --upgrade\r\n<\/pre>\n

pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u4e00\u62ec\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9(\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8)<\/strong><\/p>\n

\r\npip freeze | grep -v '^\\-e' | cut -d = -f 1 | xargs pip install -U\r\n<\/pre>\n

yum\u30d1\u30c3\u30b1\u30fc\u30b8\u3001pip\u3092\u4e00\u62ec\u3067\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8<\/h4>\n

yum\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3084pip\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u500b\u5225\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9(\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8)\u3059\u308b\u306e\u304c\u9762\u5012\u306a\u5834\u5408\u3001\u500b\u5225\u306b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3059\u308b\u5fc5\u8981\u304c\u7121\u3044\u5834\u5408\u3082\u8981\u4ef6\u3084\u305d\u308c\u305e\u308c\u306e\u4f7f\u3044\u65b9\u306b\u3088\u3063\u3066\u306f\u3042\u308a\u307e\u3059\u3002<\/p>\n

\u305d\u306e\u3088\u3046\u306a\u5834\u5408\u306b\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u7528\u610f\u3057\u3066\u304a\u3051\u3070\u3001\u4e00\u62ec\u3067yum\u3068pip\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9(\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8)\u3067\u304d\u307e\u3059\u3002<\/p>\n

\r\nvim yum_pip_upgrade.sh\r\n<\/pre>\n
\r\n#!\/bin\/bash\r\n\r\n#yum\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u5168\u3066\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\r\nyum -y upgrade\r\n\r\n#pip\u672c\u4f53\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\r\npip install pip --upgrade\r\n\r\n#pip\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u30d1\u30c3\u30b1\u30fc\u30b8\u5168\u3066\u3092\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\r\npip freeze | grep -v '^\\-e' | cut -d = -f 1 | xargs pip install -U\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"

AWS\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30a4\u30b9(AWS CLI)\u3092\u306f\u3058\u3081\u3001Python\u3092\u7528\u3044\u3066\u958b\u767a\u3055\u308c\u3066\u3044\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u8fd1\u5e74\u3055\u3089\u306b\u5897\u3048\u3066\u304d\u3066\u3044\u307e\u3059\u3002 \u3068\u3044\u3046\u306e\u3082\u65e5\u672c\u3067\u306f\u65e5\u672c\u4eba\u304c\u958b\u767a\u3057\u305f\u3068\u3044\u3046\u7d4c\u7def\u3082\u3042\u308aRuby\u3001Ruby on […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[3,81,79,80,82],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/4219"}],"collection":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/comments?post=4219"}],"version-history":[{"count":1,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/4219\/revisions"}],"predecessor-version":[{"id":4220,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/posts\/4219\/revisions\/4220"}],"wp:attachment":[{"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/media?parent=4219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/categories?post=4219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magtranetwork.com\/wp-json\/wp\/v2\/tags?post=4219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}