{"id":3383,"date":"2016-05-03T17:27:28","date_gmt":"2016-05-03T08:27:28","guid":{"rendered":"http:\/\/blog.cgfm.jp\/garyu\/?p=3383"},"modified":"2016-05-03T17:27:28","modified_gmt":"2016-05-03T08:27:28","slug":"importerror-cannot-import-name-create_connection-%e3%81%ab%e3%81%af-pip-install-slackclient","status":"publish","type":"post","link":"https:\/\/blog.cgfm.jp\/garyu\/archives\/3383","title":{"rendered":"ImportError: cannot import name &#8216;create_connection&#8217; \u306b\u306f pip install slackclient"},"content":{"rendered":"<p><a href=\"http:\/\/qiita.com\/GushiSnow\/items\/79ca7deeb976f50126d7\">Chainer\u3067\u5b66\u7fd2\u3057\u305f\u5bfe\u8a71\u7528\u306e\u30dc\u30c3\u30c8\u3092Slack\u3067\u4f7f\u7528+Twitter\u304b\u3089\u5b66\u7fd2\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0 &#8211; Qiita<\/a> \u3067\u3001slack\/app.py \u3092\u8a66\u3057\u3066\u308b\u6642\u306b\u906d\u9047\u3002<\/p>\n<p>\u30fbMac OS X El Capitan<br \/>\n\u30fbPython 3.4.1<\/p>\n<p>ImportError: cannot import name &#8216;create_connection&#8217;<\/p>\n<p>\u3068\u51fa\u305f\u306e\u3067\u3001\u304a\u6c7a\u307e\u308a\u306e pip \u3067\u6307\u5b9a\u3055\u308c\u3066\u308b\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f<\/p>\n<pre>\n$ sudo -H pip install create_connection\nDownloading\/unpacking create_connection\n  Could not find any downloads that satisfy the requirement create-connection\nCleaning up...\nNo distributions at all found for create-connection\n<\/pre>\n<p>\u305d\u3093\u306a\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u898b\u3064\u304b\u3089\u306a\u3044\u3063\u3066\u6012\u3089\u308c\u308b\u3002<br \/>\n\u8abf\u3079\u3066\u307f\u305f\u3089<a href=\"https:\/\/github.com\/slackhq\/python-slackclient\">GitHub &#8211; slackhq\/python-slackclient<\/a>\u3068\u3044\u3046\u306e\u304c\u3042\u3063\u3066\u3053\u308c\u3092\u5165\u308c\u308c\u3070\u3044\u3044\u307f\u305f\u3044\uff08\u3088\u304f\u308f\u304b\u3063\u3066\u306a\u3044\uff09<\/p>\n<pre>\n$ sudo -H pip install slackclient\n<\/pre>\n<p>\u3053\u308c\u3067OK<br \/>\n\u8ab0\u304b\u306e\u304a\u5f79\u306b\u7acb\u3066\u308c\u3070\u5e78\u3044<\/p>\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/github.com\/hangoutsbot\/hangoutsbot\/issues\/456#issuecomment-168401707\">SlackRTM can&#8217;t import slackClient, wich is installed #456<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Chainer\u3067\u5b66\u7fd2\u3057\u305f\u5bfe\u8a71\u7528\u306e\u30dc\u30c3\u30c8\u3092Slack\u3067\u4f7f\u7528+Twitter\u304b\u3089\u5b66\u7fd2\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3057\u3066\u30d5\u30a1\u30a4\u30f3\u30c1\u30e5\u30fc\u30cb\u30f3\u30b0 &#8211; Qiita \u3067\u3001slack\/app.py \u3092\u8a66\u3057\u3066\u308b\u6642\u306b\u906d\u9047\u3002 \u30fbMac OS X E [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[380,15,387],"tags":[],"class_list":["post-3383","post","type-post","status-publish","format-standard","hentry","category-ai","category-mac","category-python"],"_links":{"self":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/3383","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/comments?post=3383"}],"version-history":[{"count":1,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/3383\/revisions"}],"predecessor-version":[{"id":3384,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/posts\/3383\/revisions\/3384"}],"wp:attachment":[{"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/media?parent=3383"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/categories?post=3383"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.cgfm.jp\/garyu\/wp-json\/wp\/v2\/tags?post=3383"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}