{"id":163,"date":"2016-02-03T06:37:03","date_gmt":"2016-02-03T06:37:03","guid":{"rendered":""},"modified":"2016-02-03T06:37:03","modified_gmt":"2016-02-03T06:37:03","slug":"","status":"publish","type":"post","link":"http:\/\/weizn.net\/?p=163","title":{"rendered":"Python\u5b89\u88c5easy_install\u548cpip"},"content":{"rendered":"<p>\n\t<span style=\"font-size:14px;\">\u505a\u4e2a\u8bb0\u5f55<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">easy_install\u548cpip\u90fd\u662f\u7528\u6765\u4e0b\u8f7d\u5b89\u88c5Python\u4e00\u4e2a\u516c\u5171\u8d44\u6e90\u5e93PyPI\u7684\u76f8\u5173\u8d44\u6e90\u5305\u7684<\/span><br \/>\n<span style=\"font-size:14px;\">\u9996\u5148\u5b89\u88c5easy_install<\/span><br \/>\n<span style=\"font-size:14px;\">\u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/ez_setup<\/span><br \/>\n<span style=\"font-size:14px;\">\u89e3\u538b,\u5b89\u88c5.<\/span><br \/>\n<span style=\"font-size:14px;\">python ez_setup.py<\/span>\n<\/p>\n<p>\n\t<br \/>\n<span style=\"font-size:14px;\">\u5b89\u88c5\u597deasy_install \u4e4b\u540e \u518d\u5b89\u88c5pip<\/span><br \/>\n<span style=\"font-size:14px;\">\u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/pip<\/span><br \/>\n<span style=\"font-size:14px;\">\u89e3\u538b,\u5b89\u88c5.<\/span><br \/>\n<span style=\"font-size:14px;\">python setup.py install<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\"><br \/>\n<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef\uff1a<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">(1)ImportError: No module named setuptools<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">wget http:\/\/pypi.python.org\/packages\/source\/s\/setuptools\/setuptools-0.6c11.tar.gz<br \/>\ntar zxvf setuptools-0.6c11.tar.gz<br \/>\ncd setuptools-0.6c11<br \/>\npython setup.py build<br \/>\npython setup.py install<\/p>\n<p><\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">(2)Traceback (most recent call last):<br \/>\n&nbsp; &nbsp;File &#8220;&lt;stdin&gt;&#8221;, line 1, in &lt;module&gt;<br \/>\n&nbsp; &nbsp;File &#8220;\/usr\/local\/python27\/lib\/python2.7\/urllib.py&#8221;, line 86, in urlopen<br \/>\n&nbsp; &nbsp; &nbsp;return opener.open(url)<br \/>\n&nbsp; &nbsp;File &#8220;\/usr\/local\/python27\/lib\/python2.7\/urllib.py&#8221;, line 204, in open<br \/>\n&nbsp; &nbsp; &nbsp;return self.open_unknown(fullurl, data)<br \/>\n&nbsp; &nbsp;File &#8220;\/usr\/local\/python27\/lib\/python2.7\/urllib.py&#8221;, line 216, in open_unknown<br \/>\n&nbsp; &nbsp; &nbsp;raise IOError, (&#8216;url error&#8217;, &#8216;unknown url type&#8217;, type)<br \/>\n&nbsp;IOError: [Errno url error] unknown url type: &#8216;https&#8217;<\/p>\n<p><\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">sudo apt-get install openssl&nbsp;<br \/>\nsudo apt-get install libssl-dev<br \/>\n<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">\u7136\u540e\u91cd\u65b0\u7f16\u8bd1\u5e76\u5b89\u88c5Python<\/span>\n<\/p>\n<p>\n\t&nbsp;\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">PS:<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">Wi<\/span><span style=\"font-size:14px;\">ndows<\/span><span style=\"font-size:14px;\">\u9700\u8981\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\uff1a<\/span><span style=\"font-size:14px;\">C:\\Python27\\Scripts<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\n\t<span style=\"font-size:14px;\">\u505a\u4e2a\u8bb0\u5f55<\/span>\n<\/p>\n<p>\n\t<span style=\"font-size:14px;\">easy_install\u548cpip\u90fd\u662f\u7528\u6765\u4e0b\u8f7d\u5b89\u88c5Python\u4e00\u4e2a\u516c\u5171\u8d44\u6e90\u5e93PyPI\u7684\u76f8\u5173\u8d44\u6e90\u5305\u7684<\/span><br \/>\n<span style=\"font-size:14px;\">\u9996\u5148\u5b89\u88c5easy_install<\/span><br \/>\n<span style=\"font-size:14px;\">\u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/ez_setup<\/span><br \/>\n<span style=\"font-size:14px;\">\u89e3\u538b,\u5b89\u88c5.<\/span><br \/>\n<span style=\"font-size:14px;\">python ez_setup.py<\/span>\n<\/p>\n<p>\n\t<br \/>\n<span style=\"font-size:14px;\">\u5b89\u88c5\u597deasy_install \u4e4b\u540e \u518d\u5b89\u88c5pip<\/span><br \/>\n<span style=\"font-size:14px;\">\u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/pip<\/span><br \/>\n<span style=\"font-size:14px;\">\u89e3\u538b,\u5b89&#8230;<\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[334],"tags":[],"class_list":["post-163","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v16.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python\u5b89\u88c5easy_install\u548cpip - Wayne&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/weizn.net\/?p=163\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python\u5b89\u88c5easy_install\u548cpip - Wayne&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u505a\u4e2a\u8bb0\u5f55    easy_install\u548cpip\u90fd\u662f\u7528\u6765\u4e0b\u8f7d\u5b89\u88c5Python\u4e00\u4e2a\u516c\u5171\u8d44\u6e90\u5e93PyPI\u7684\u76f8\u5173\u8d44\u6e90\u5305\u7684 \u9996\u5148\u5b89\u88c5easy_install \u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/ez_setup \u89e3\u538b,\u5b89\u88c5. python ez_setup.py     \u5b89\u88c5\u597deasy_install \u4e4b\u540e \u518d\u5b89\u88c5pip \u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/pip \u89e3\u538b,\u5b89...\" \/>\n<meta property=\"og:url\" content=\"http:\/\/weizn.net\/?p=163\" \/>\n<meta property=\"og:site_name\" content=\"Wayne&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2016-02-03T06:37:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"zinan\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/weizn.net\/#website\",\"url\":\"http:\/\/weizn.net\/\",\"name\":\"Wayne&#039;s Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/weizn.net\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/weizn.net\/?p=163#webpage\",\"url\":\"http:\/\/weizn.net\/?p=163\",\"name\":\"Python\\u5b89\\u88c5easy_install\\u548cpip - Wayne&#039;s Blog\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/#website\"},\"datePublished\":\"2016-02-03T06:37:03+00:00\",\"dateModified\":\"2016-02-03T06:37:03+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/weizn.net\/?p=163#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/weizn.net\/?p=163\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/weizn.net\/?p=163#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\\u9996\\u9875\",\"item\":\"http:\/\/weizn.net\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\\u5b89\\u88c5easy_install\\u548cpip\"}]},{\"@type\":\"Article\",\"@id\":\"http:\/\/weizn.net\/?p=163#article\",\"isPartOf\":{\"@id\":\"http:\/\/weizn.net\/?p=163#webpage\"},\"author\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"headline\":\"Python\\u5b89\\u88c5easy_install\\u548cpip\",\"datePublished\":\"2016-02-03T06:37:03+00:00\",\"dateModified\":\"2016-02-03T06:37:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/weizn.net\/?p=163#webpage\"},\"wordCount\":178,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\"},\"articleSection\":[\"Python\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/weizn.net\/?p=163#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264\",\"name\":\"zinan\",\"logo\":{\"@id\":\"http:\/\/weizn.net\/#personlogo\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python\u5b89\u88c5easy_install\u548cpip - Wayne&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/weizn.net\/?p=163","og_locale":"zh_CN","og_type":"article","og_title":"Python\u5b89\u88c5easy_install\u548cpip - Wayne&#039;s Blog","og_description":"\u505a\u4e2a\u8bb0\u5f55    easy_install\u548cpip\u90fd\u662f\u7528\u6765\u4e0b\u8f7d\u5b89\u88c5Python\u4e00\u4e2a\u516c\u5171\u8d44\u6e90\u5e93PyPI\u7684\u76f8\u5173\u8d44\u6e90\u5305\u7684 \u9996\u5148\u5b89\u88c5easy_install \u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/ez_setup \u89e3\u538b,\u5b89\u88c5. python ez_setup.py     \u5b89\u88c5\u597deasy_install \u4e4b\u540e \u518d\u5b89\u88c5pip \u4e0b\u8f7d\u5730\u5740:https:\/\/pypi.python.org\/pypi\/pip \u89e3\u538b,\u5b89...","og_url":"http:\/\/weizn.net\/?p=163","og_site_name":"Wayne&#039;s Blog","article_published_time":"2016-02-03T06:37:03+00:00","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"zinan","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/weizn.net\/#website","url":"http:\/\/weizn.net\/","name":"Wayne&#039;s Blog","description":"","publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/weizn.net\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"WebPage","@id":"http:\/\/weizn.net\/?p=163#webpage","url":"http:\/\/weizn.net\/?p=163","name":"Python\u5b89\u88c5easy_install\u548cpip - Wayne&#039;s Blog","isPartOf":{"@id":"http:\/\/weizn.net\/#website"},"datePublished":"2016-02-03T06:37:03+00:00","dateModified":"2016-02-03T06:37:03+00:00","breadcrumb":{"@id":"http:\/\/weizn.net\/?p=163#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/weizn.net\/?p=163"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/weizn.net\/?p=163#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/weizn.net\/"},{"@type":"ListItem","position":2,"name":"Python\u5b89\u88c5easy_install\u548cpip"}]},{"@type":"Article","@id":"http:\/\/weizn.net\/?p=163#article","isPartOf":{"@id":"http:\/\/weizn.net\/?p=163#webpage"},"author":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"headline":"Python\u5b89\u88c5easy_install\u548cpip","datePublished":"2016-02-03T06:37:03+00:00","dateModified":"2016-02-03T06:37:03+00:00","mainEntityOfPage":{"@id":"http:\/\/weizn.net\/?p=163#webpage"},"wordCount":178,"commentCount":0,"publisher":{"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264"},"articleSection":["Python"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/weizn.net\/?p=163#respond"]}]},{"@type":["Person","Organization"],"@id":"http:\/\/weizn.net\/#\/schema\/person\/e88bc12c590502d8b6249326f960b264","name":"zinan","logo":{"@id":"http:\/\/weizn.net\/#personlogo"}}]}},"_links":{"self":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/163","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=163"}],"version-history":[{"count":0,"href":"http:\/\/weizn.net\/index.php?rest_route=\/wp\/v2\/posts\/163\/revisions"}],"wp:attachment":[{"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=163"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=163"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/weizn.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=163"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}