﻿{"id":81,"date":"2020-05-31T01:08:05","date_gmt":"2020-05-30T17:08:05","guid":{"rendered":"https:\/\/byy3.com\/?p=81"},"modified":"2021-11-23T03:16:32","modified_gmt":"2021-11-22T19:16:32","slug":"kali%e4%b8%8b%e5%ae%89%e8%a3%85pip3","status":"publish","type":"post","link":"https:\/\/byy3.com\/?p=81","title":{"rendered":"kali\u548cubuntu\u7b49linux\u548cwindows\u5b89\u88c5pip3\u548cpip\u5171\u5b58"},"content":{"rendered":"\r\n<p class=\"wp-block-paragraph\">linux\u5b89\u88c5python\u548cpython3 \u4ee5\u53capip\u548cpip3 \u63a8\u8350\u91c7\u7528\u624b\u52a8\u6a21\u5f0f\u5b89\u88c5<\/p>\r\n<p>linux\u4e0b\u9996\u6b21\u5b89\u88c5apt-get update &amp; apt install python2.7 \u8fd9\u6837\u4f7f\u7528python2\u65f6\u4f7f\u7528\u547d\u4ee4python2.7 -V<\/p>\r\n<p>\u7136\u540e\u5b89\u88c5python3(\u4e00\u822clinux\u7cfb\u7edf\u81ea\u5e26)\u547d\u4ee4apt-get install python3\u6216python3.8 \u7136\u540epython3 -V<\/p>\r\n<p>\u7136\u540e\u624b\u52a8\u5b89\u88c5pip\u548cpip3\u00a0<\/p>\r\n<p>python2.7\u5982\u679c\u4e0d\u884ccurl\u00a0 https:\/\/bootstrap.pypa.io\/pip\/2.7\/get-pip.py \u7136\u540e python2.7 get-pip.py \u67e5\u770bpip -V<\/p>\r\n<p>\u00a0python2.7\u91c7\u7528wget https:\/\/bootstrap.pypa.io\/pip\/2.7\/get-pip.py\u7136\u540e python2.7 get-pip.py \u67e5\u770bpip -V<\/p>\r\n<p>pip3\u624b\u52a8\u5b89\u88c5wget https:\/\/bootstrap.pypa.io\/get-pip.py \u7136\u540epython3 get-pip.py\u67e5\u770bpython3 -m pip -V<\/p>\r\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u6109\u5feb\u7684\u4f7f\u7528pip\u5b89\u88c5python\u9700\u8981\u7684\u5305\u548c\u6a21\u5757\u4e86\uff0c<\/p>\r\n<p>\u6bd4\u5982pip install -r -r requirements.txt\u00a0 \u6216pip3 install requests\u00a0<\/p>\r\n<hr \/>\r\n<p><img decoding=\"async\" data-original=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/0\/02\/Pip_help.png\" src=\"https:\/\/byy3.com\/wp-content\/themes\/MNews%20V2.4\/images\/post-loading.gif\" title=\"kali\u548cubuntu\u7b49linux\u548cwindows\u5b89\u88c5pip3\u548cpip\u5171\u5b58\u63d2\u56fe\" alt=\"kali\u548cubuntu\u7b49linux\u548cwindows\u5b89\u88c5pip3\u548cpip\u5171\u5b58\u63d2\u56fe\" \/><\/p>\r\n<p>1.\u5b89\u88c5pip3<\/p>\r\n\r\n<p>(pip\u548cpip3\u5171\u5b58\u7684\u65b9\u6cd5\u5b89\u88c5\u91c7\u7528curl \u4e0b\u8f7d\u624b\u52a8\u5b89\u88c5) \u5728\u5df2\u6709python2\u7684pip\u524d\u63d0\u4e0b\u5b89\u88c5\u65b9\u5f0f\u5b89\u88c5pip3 \u5e76\u6ce8\u610fPATH<\/p>\r\n<p>\u547d\u4ee4export PATH=$PATH:\/usr\/bin:\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/sbin<\/p>\r\n<p>***\u6c38\u4e45\u53d8\u91cf echo export 'PATH=\"$PATH:\/usr\/bin:\/bin:\/usr\/local\/sbin:\/usr\/local\/bin:\/usr\/sbin:\/sbin\"' &gt;&gt; \/root\/.bashrc<\/p>\r\n\r\n<p class=\"wp-block-paragraph\">wget https:\/\/bootstrap.pypa.io\/get-pip.py<br \/>python3 get-pip.py<br \/>pip3 -V<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u65b9\u6cd5\u4e8c\uff1asudo apt-get install python3-pip (\u4e0d\u7528\u4e0b\u8f7d\u76f4\u63a5\u4eceapt\u5305python3\u81ea\u5e26\u5b89\u88c5)<\/p>\r\n<p>\u5982\u679c\u5b89\u88c5\u4e0d\u4e86\u8bb0\u5f97apt-get update<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">2.\u5b89\u88c5pip \uff08\u57fa\u4e8e\u9ed8\u8ba4kali python2.7\u7248\u672c\uff09<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Installing with get-pip.py<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/pip.pypa.io\/en\/stable\/installing\/#installing-with-get-pip-py\" rel=\"nofollow\" >\u00b6<\/a><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">To install pip, securely\u00a0<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/pip.pypa.io\/en\/stable\/installing\/#id7\" rel=\"nofollow\" >1<\/a>\u00a0download\u00a0<code>get-pip.py<\/code>\u00a0by following this link:\u00a0<a href=\"https:\/\/byy3.com\/go\/?url=https:\/\/bootstrap.pypa.io\/get-pip.py\" rel=\"nofollow\" >get-pip.py<\/a>. Alternatively, use\u00a0<code>curl<\/code>:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"><strong>#curl https:\/\/bootstrap.pypa.io\/get-pip.py -o get-pip.py<\/strong><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Then run the following command in the folder where you have downloaded\u00a0<code>get-pip.py<\/code>:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\"><strong>#python get-pip.py<\/strong><\/pre>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u5173\u4e8epython\u7f3a\u5c11\u4ec0\u4e48\u6a21\u5757\u6bd4\u5982html2text \u90a3\u4e48\u5c31python install html2text<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">\u5982\u679c\u53d1\u73b0\u5728python3\u7684\u6587\u4ef6\u4e0b\u5c31\u590d\u5236\u5728python2.7\u4e0b #cp -r html2text \/usr\/lib\/python2.7 \u641e\u5b9a<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">***\u5df2\u4e0b\u8f7d \u5728hack\/\u811a\u672c\u5de5\u5177 \u6587\u4ef6\u5939\u5b89\u88c5<\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">Ubuntu\u5b89\u88c5pip \u7684\u5751<code>\u00a0sudo apt-get install\u00a0<em>python3<\/em>-<em>pip<\/em><\/code><\/p>\r\n\r\n\r\n\r\n<p class=\"wp-block-paragraph\">***\u5b89\u88c5\u524d\u9700\u8981apt-get update<\/p>\r\n<p>&nbsp;<\/p>\r\n<p>windows\u73af\u5883\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u540e<\/p>\r\n<p>\u4f7f\u7528python -V \u67e5\u8be2\u7248\u672c \u6216python2\u00a0 -V\u00a0 \u6216 python3 -V \u6ce8\u610f\u7248\u672c\u76ee\u5f55<\/p>\r\n<p>\u5b89\u88c5pip\u00a0 \uff08\u524d\u63d0\u9519\u8bef\u6ca1\u6709pip\u6a21\u5757<\/p>\r\n<p>C:\\Python3\\python.exe: No module named pip\uff09<\/p>\r\n<p>\u89e3\u51b3\u529e\u6cd5\u4f7f\u7528 python -m ensurepip\u00a0\u00a0<\/p>\r\n<p>\u6df7\u5408\u7248\u672c\u4f7f\u7528pip \u5168\u547d\u4ee4\u5b89\u88c5python\u5bf9\u5e94\u7248\u672c\u7684\u6a21\u5757\u00a0 \u5982\u4e0b<\/p>\r\n<p><strong>python -m pip install pyecharts<\/strong><\/p>\r\n<p>python3 -m pip install request<br \/>\u00a0 pip\u66f4\u65b0\u65b9\u6cd5C:\\Python3\\python.exe -m pip install --upgrade pip\u00a0 \u6216python -m pip install --upgrade pip<\/p>\r\n<hr \/>\r\n<p>\u9047\u5230\u95ee\u9898\u6216pip2 -r requirement.txt\u5305\u51fa\u73b0\u95ee\u9898\u65f6\u91c7\u7528dev\u7248\u672c<\/p>\r\n<pre class=\"lang-py s-code-block hljs python\"><code>sudo apt update<br \/><\/code><\/pre>\r\n<pre class=\"lang-py s-code-block hljs python\"><code>sudo apt-get install build-essential python2<span class=\"hljs-number\">.7<\/span>-dev<\/code> \uff08\u4fdd\u9669\u8d77\u89c1\uff09<\/pre>\r\n<pre class=\"lang-py s-code-block hljs python\"><code>sudo apt install python3<span class=\"hljs-number\">.6<\/span>-dev<\/code><br \/><br \/><\/pre>\r\n","protected":false},"excerpt":{"rendered":"<p>linux\u5b89\u88c5python\u548cpython3 \u4ee5\u53capip\u548cpip3 \u63a8\u8350\u91c7\u7528\u624b\u52a8\u6a21\u5f0f\u5b89\u88c5 linux\u4e0b\u9996\u6b21\u5b89\u88c5a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,20],"tags":[353,352],"class_list":["post-81","post","type-post","status-publish","format-standard","hentry","category-linux","category-python","tag-linux","tag-python"],"_links":{"self":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/81","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=81"}],"version-history":[{"count":0,"href":"https:\/\/byy3.com\/index.php?rest_route=\/wp\/v2\/posts\/81\/revisions"}],"wp:attachment":[{"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=81"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=81"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/byy3.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=81"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}