{"id":1248,"date":"2024-08-21T15:14:26","date_gmt":"2024-08-21T07:14:26","guid":{"rendered":"http:\/\/www.rchen.top\/?p=1248"},"modified":"2024-08-21T15:16:07","modified_gmt":"2024-08-21T07:16:07","slug":"pip%e5%ae%89%e8%a3%85python%e5%ba%93","status":"publish","type":"post","link":"https:\/\/www.rchen.top\/?p=1248","title":{"rendered":"pip\u5b89\u88c5python\u5e93"},"content":{"rendered":"<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 20.0pt;\"><span lang=\"en-US\" style=\"font-weight: bold;\">python<\/span><span lang=\"zh-CN\" style=\"font-weight: bold;\">\u5e93\u5728\u7ebf\u5b89\u88c5\u65b9\u6cd5<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">export <\/span><span lang=\"zh-CN\">\u8bbe\u7f6e<\/span><span lang=\"en-US\">python3<\/span><span lang=\"zh-CN\">\u73af\u5883\u53d8\u91cf<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\">PATH=\/eda\/common_tool\/python-3.9.9\/bin<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\">LD_LIBRARY_PATH=\/eda\/common_tool\/python-3.9.9\/lib<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">which python3<\/span><span lang=\"zh-CN\">\u67e5\u8be2\u8def\u5f84\u662f\u5426\u8bbe\u7f6e\u6b63\u786e\u3002<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">pip3 install \u5305\u540d \/\/\u5b89\u88c5\u5305<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">pip3 uninstall \u5305\u540d \/\/\u5378\u8f7d\u5305<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">pip3 install -U \u5305\u540d \/\/\u66f4\u65b0\u5305<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"en-US\">pip3 show <\/span><span lang=\"zh-CN\">\u5305\u540d<\/span><span lang=\"en-US\"> \/\/<\/span><span lang=\"zh-CN\">\u67e5\u770b\u5305\u4fe1\u606f<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u7a0b\u5e8fimport\u5bfc\u5165<\/p>\n<p lang=\"en-US\" style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">python3<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"en-US\">import <\/span><span lang=\"zh-CN\">\u5305\u540d<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><img loading=\"lazy\" decoding=\"async\" width=\"866\" height=\"294\" class=\"alignnone wp-image-1249 size-full\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2024\/08\/Pasted.png\" \/><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 20.0pt;\"><span lang=\"en-US\" style=\"font-weight: bold;\">python<\/span><span lang=\"zh-CN\" style=\"font-weight: bold;\">\u5e93\u79bb\u7ebf\u5b89\u88c5\u65b9\u6cd5<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u4e0b\u8f7d\u5730\u5740\uff1a<\/span> <a href=\"https:\/\/pypi.org\"><span lang=\"zh-CN\">https:\/\/pypi.org<\/span><\/a><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\">\u53ef\u80fd\u9700\u8981\u7ffb\u5899\uff0c\u627e\u5230\u5bf9\u5e94\u7684\u6a21\u5757\u53ca\u7248\u672c\uff0c\u6709\u4e9b\u9700\u8981\u5b89\u88c5\u4f9d\u8d56\u5e93<\/p>\n<p style=\"margin: 0in;\"><img loading=\"lazy\" decoding=\"async\" width=\"2992\" height=\"1494\" class=\"alignnone wp-image-1250 size-full\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2024\/08\/Pasted-1.png\" \/><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 12.0pt;\"><span lang=\"zh-CN\">\u53ef\u4ee5\u901a\u8fc7\u80fd\u8bbf\u95ee\u4e92\u8054\u7f51\u7684\u670d\u52a1\u5668<\/span><span lang=\"en-US\">pip<\/span><span lang=\"zh-CN\">\u5b89\u88c5\uff0c\u53ef\u4ee5\u770b\u5230\u6a21\u5757\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u4f9d\u8d56\u5e93\uff0c\u627e\u5230\u5bf9\u5e94\u7684\u4e0b\u8f7d\u5373\u53ef<\/span><\/p>\n<p style=\"margin: 0in;\"><img loading=\"lazy\" decoding=\"async\" width=\"1734\" height=\"462\" class=\"alignnone wp-image-1253 size-full\" src=\"http:\/\/www.rchen.top\/wp-content\/uploads\/2024\/08\/Pasted-3.png\" \/><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">export <\/span><span lang=\"zh-CN\">\u8bbe\u7f6e<\/span><span lang=\"en-US\">python3<\/span><span lang=\"zh-CN\">\u73af\u5883\u53d8\u91cf<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\">PATH=\/eda\/common_tool\/python-3.9.9\/bin<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\">LD_LIBRARY_PATH=\/eda\/common_tool\/python-3.9.9\/lib<\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">which python3<\/span><span lang=\"zh-CN\">\u67e5\u8be2\u8def\u5f84\u662f\u5426\u8bbe\u7f6e\u6b63\u786e\u3002<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u96b6\u4e66; font-size: 20.0pt;\">\u65b9\u5f0f\u4e00\uff1a<\/p>\n<p style=\"margin: 0in; font-size: 11.0pt;\"><span lang=\"en-US\" style=\"font-family: Calibri;\">\/\/<\/span><span lang=\"en-US\" style=\"font-family: \u7b49\u7ebf;\">cd<\/span><span lang=\"zh-CN\" style=\"font-family: \u7b49\u7ebf;\">\u5230\u5b89\u88c5\u5305\u6240\u5728\u76ee\u5f55\u6267\u884c\u5b89\u88c5<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">pip3 install <\/span><span lang=\"zh-CN\">\u5305\u540d<\/span><span lang=\"en-US\">.whl<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">\/\/<\/span><span lang=\"zh-CN\">\u67e5\u770b\u5305\u4fe1\u606f<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\"><span lang=\"en-US\">pip3 show <\/span><span lang=\"zh-CN\">\u5305\u540d<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u96b6\u4e66; font-size: 20.0pt;\">\u65b9\u5f0f\u4e8c\uff1a<\/p>\n<p style=\"margin: 0in; font-family: \u96b6\u4e66; font-size: 20.0pt;\"><span lang=\"zh-CN\">\u901a\u8fc7<\/span><span lang=\"en-US\">tar.gz<\/span><span lang=\"zh-CN\">\u5305\uff0c\u89e3\u538b<\/span><\/p>\n<p style=\"margin: 0in; font-family: \u7b49\u7ebf; font-size: 11.0pt;\">python setup.py install<\/p>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>python\u5e93\u5728\u7ebf\u5b89\u88c5\u65b9\u6cd5 export \u8bbe\u7f6epython3\u73af\u5883\u53d8\u91cf PATH=\/eda\/common_too [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1177,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[32,37,35],"tags":[153],"class_list":["post-1248","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-shellshell-scripts","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/1248","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1248"}],"version-history":[{"count":2,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/1248\/revisions"}],"predecessor-version":[{"id":1254,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/posts\/1248\/revisions\/1254"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=\/wp\/v2\/media\/1177"}],"wp:attachment":[{"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1248"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1248"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rchen.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1248"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}