{"id":38630,"date":"2023-07-16T20:47:18","date_gmt":"2023-07-16T12:47:18","guid":{"rendered":"https:\/\/docs.pingcode.com\/?p=38630"},"modified":"2023-07-31T02:16:44","modified_gmt":"2023-07-30T18:16:44","slug":"pip-install-%e5%92%8cconda-install%e6%9c%89%e4%bb%80%e4%b9%88%e5%8c%ba%e5%88%ab","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/38630.html","title":{"rendered":"pip install \u548cconda install\u6709\u4ec0\u4e48\u533a\u522b"},"content":{"rendered":"<blockquote class=\"wp-block-quote\">\n<p>pip install\u548cconda install\u6709\u4ee5\u4e0b\u533a\u522b\uff1a\u4e00\u3001\u5b89\u88c5\u6e90\u4e0d\u540c\uff1b\u4e8c\u3001\u8de8\u5e73\u53f0\u652f\u6301\u7684\u4e0d\u540c\uff1b\u4e09\u3001\u4f9d\u8d56\u89e3\u6790\u4e0d\u540c\uff1b\u56db\u3001\u8f6f\u4ef6\u73af\u5883\u7ba1\u7406\u4e0d\u540c\uff1b\u4e94\u3001\u8f6f\u4ef6\u5305\u6570\u91cf\u4e0d\u540c\uff1b\u516d\u3001\u7ba1\u7406\u7cfb\u7edf\u8f6f\u4ef6\u4e0d\u540c\u3002\u5b89\u88c5\u6e90\u4e0d\u540c\u5728\u4e8e\uff0cpip install\u4f7f\u7528PyPI\u4f5c\u4e3a\u5b89\u88c5\u6e90\uff0c\u800cconda install\u4f7f\u7528Anaconda\u5b58\u50a8\u5e93\u4f5c\u4e3a\u5b89\u88c5\u6e90\u3002<\/p>\n<\/blockquote>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" alt=\"pip install \u548cconda install\u6709\u4ec0\u4e48\u533a\u522b\" class=\"wp-image-38631\" decoding=\"async\" height=\"421\" sizes=\"(max-width: 680px) 100vw, 680px\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/07\/4-3.jpeg?x-oss-process=image\/auto-orient,1\/format,webp\" srcset=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/07\/4-3.jpeg?x-oss-process=image\/auto-orient,1\/format,webp 680w, https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2023\/07\/4-3-300x186.jpeg 300w\" width=\"680\"\/><\/figure>\n<\/div>\n<h2 class=\"wp-block-heading\">\u4e00\u3001\u5b89\u88c5\u6e90\u4e0d\u540c<\/h2>\n<p>pip install\u548cconda install\u4f7f\u7528\u4e0d\u540c\u7684\u5b89\u88c5\u6e90\u3002pip\u662fPython\u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u4e3b\u8981\u4f7f\u7528Python Package Index\uff08PyPI\uff09\u4f5c\u4e3a\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u6e90\u3002PyPI\u662f\u4e00\u4e2a\u7531\u793e\u533a\u7ef4\u62a4\u7684\u5b58\u50a8\u5e93\uff0c\u5305\u542b\u4e86\u5927\u91cf\u7684Python\u8f6f\u4ef6\u5305\u3002\u800cconda\u662fAnaconda\u7684\u9ed8\u8ba4\u5305\u7ba1\u7406\u5668\uff0c\u5b83\u4f7f\u7528Anaconda\u5b58\u50a8\u5e93\u4f5c\u4e3a\u5176\u5b89\u88c5\u6e90\u3002Anaconda\u5b58\u50a8\u5e93\u662f\u4e00\u4e2a\u7ecf\u8fc7\u7cbe\u5fc3\u7b56\u5212\u7684\u5b58\u50a8\u5e93\uff0c\u4e13\u95e8\u7528\u4e8e\u652f\u6301\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u79d1\u5b66\u9886\u57df\u7684\u8f6f\u4ef6\u5305\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4e8c\u3001\u8de8\u5e73\u53f0\u652f\u6301\u7684\u4e0d\u540c<\/h2>\n<p>pip install\u548cconda install\u5728\u8de8\u5e73\u53f0\u652f\u6301\u65b9\u9762\u4e5f\u5b58\u5728\u5dee\u5f02\u3002pip\u662fPython\u7684\u5b98\u65b9\u5305\u7ba1\u7406\u5668\uff0c\u56e0\u6b64\u5b83\u5728\u51e0\u4e4e\u6240\u6709\u5e73\u53f0\u4e0a\u90fd\u80fd\u8fd0\u884c\uff0c\u5305\u62ecWindows\u3001Linux\u548cmacOS\u3002\u800cconda\u5219\u662fAnaconda\u7684\u4e00\u90e8\u5206\uff0c\u5b83\u88ab\u8bbe\u8ba1\u7528\u4e8e\u652f\u6301\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5e76\u4e14\u7279\u522b\u9002\u7528\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u79d1\u5b66\u4efb\u52a1\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4e09\u3001\u4f9d\u8d56\u89e3\u6790\u4e0d\u540c<\/h2>\n<p>\u5728\u89e3\u6790\u4f9d\u8d56\u5173\u7cfb\u65b9\u9762\uff0cpip\u548cconda\u4e5f\u6709\u4e0d\u540c\u7684\u65b9\u5f0f\u3002pip\u4e3b\u8981\u4f9d\u8d56\u4e8ePython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u5b83\u4f1a\u89e3\u6790\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5e76\u5c1d\u8bd5\u81ea\u52a8\u5b89\u88c5\u6240\u9700\u7684\u4f9d\u8d56\u9879\u3002\u4f46\u662f\uff0c\u7531\u4e8ePython\u8f6f\u4ef6\u5305\u7684\u4f9d\u8d56\u5173\u7cfb\u53ef\u80fd\u590d\u6742\u4e14\u4e0d\u4e00\u81f4\uff0c\u4f7f\u7528pip\u5b89\u88c5\u4e00\u4e9b\u8f6f\u4ef6\u5305\u65f6\u53ef\u80fd\u4f1a\u9047\u5230\u4f9d\u8d56\u95ee\u9898\u3002\u800cconda\u5219\u4f7f\u7528\u4e86\u66f4\u590d\u6742\u7684\u4f9d\u8d56\u89e3\u6790\u7b97\u6cd5\uff0c\u80fd\u591f\u89e3\u51b3\u4f9d\u8d56\u5173\u7cfb\u51b2\u7a81\u7684\u95ee\u9898\uff0c\u5e76\u786e\u4fdd\u6240\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u80fd\u591f\u517c\u5bb9\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u56db\u3001\u8f6f\u4ef6\u73af\u5883\u7ba1\u7406\u4e0d\u540c<\/h2>\n<p>conda install\u76f8\u8f83\u4e8epip install\u5728\u8f6f\u4ef6\u73af\u5883\u7ba1\u7406\u65b9\u9762\u66f4\u52a0\u5f3a\u5927\u3002conda\u63d0\u4f9b\u4e86\u73af\u5883\u7ba1\u7406\u7684\u529f\u80fd\uff0c\u5141\u8bb8\u7528\u6237\u521b\u5efa\u3001\u5bfc\u51fa\u3001\u5bfc\u5165\u548c\u5171\u4eab\u72ec\u7acb\u7684\u8f6f\u4ef6\u73af\u5883\u3002\u8fd9\u610f\u5473\u7740\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u4e0d\u540c\u7684\u9879\u76ee\u4e4b\u95f4\u5207\u6362\u73af\u5883\uff0c\u6bcf\u4e2a\u73af\u5883\u90fd\u53ef\u4ee5\u5177\u6709\u4e0d\u540c\u7684\u8f6f\u4ef6\u5305\u548c\u7248\u672c\u3002\u800cpip\u5e76\u6ca1\u6709\u5185\u5efa\u7684\u73af\u5883\u7ba1\u7406\u529f\u80fd\uff0c\u867d\u7136\u53ef\u4ee5\u4f7f\u7528\u865a\u62df\u73af\u5883\u6765\u5b9e\u73b0\u7c7b\u4f3c\u7684\u6548\u679c\uff0c\u4f46\u76f8\u5bf9\u6765\u8bf4\u4e0d\u591f\u65b9\u4fbf\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u4e94\u3001\u8f6f\u4ef6\u5305\u6570\u91cf\u4e0d\u540c<\/h2>\n<p>\u7531\u4e8e\u4f7f\u7528\u4e0d\u540c\u7684\u8f6f\u4ef6\u6e90\uff0cpip\u548cconda\u63d0\u4f9b\u7684\u8f6f\u4ef6\u5305\u6570\u91cf\u4e5f\u6709\u6240\u4e0d\u540c\u3002PyPI\u662fPython\u793e\u533a\u7684\u4e3b\u8981\u5b58\u50a8\u5e93\uff0c\u62e5\u6709\u6570\u91cf\u5e9e\u5927\u7684\u8f6f\u4ef6\u5305\u3002\u56e0\u6b64\uff0cpip\u53ef\u4ee5\u8bbf\u95ee\u5230\u6570\u91cf\u4f17\u591a\u7684\u8f6f\u4ef6\u5305\u548c\u5de5\u5177\u3002\u800cconda\u5219\u4e13\u6ce8\u4e8e\u79d1\u5b66\u8ba1\u7b97\u548c\u6570\u636e\u79d1\u5b66\u9886\u57df\uff0c\u5176\u5b58\u50a8\u5e93\u4e2d\u5305\u542b\u4e86\u8bb8\u591a\u5e38\u7528\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\u548c\u5de5\u5177\uff0c\u4f46\u603b\u4f53\u8f6f\u4ef6\u5305\u6570\u91cf\u53ef\u80fd\u76f8\u5bf9\u8f83\u5c11\u3002<\/p>\n<h2 class=\"wp-block-heading\">\u516d\u3001\u7ba1\u7406\u7cfb\u7edf\u8f6f\u4ef6\u4e0d\u540c<\/h2>\n<p>conda\u76f8\u6bd4pip\u8fd8\u5177\u5907\u7ba1\u7406\u7cfb\u7edf\u8f6f\u4ef6\u7684\u80fd\u529b\u3002conda\u53ef\u4ee5\u5b89\u88c5\u548c\u7ba1\u7406\u7cfb\u7edf\u7ea7\u4f9d\u8d56\uff0c\u4f8b\u5982C\u5e93\u548c\u7cfb\u7edf\u5de5\u5177\uff0c\u8fd9\u5728\u67d0\u4e9b\u9700\u8981\u8fd9\u4e9b\u4f9d\u8d56\u7684\u8f6f\u4ef6\u5305\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u975e\u5e38\u6709\u7528\u3002pip\u5e76\u4e0d\u4e13\u6ce8\u4e8e\u7ba1\u7406\u7cfb\u7edf\u7ea7\u4f9d\u8d56\uff0c\u56e0\u6b64\u5728\u8fd9\u65b9\u9762\u76f8\u5bf9\u8f83\u5f31\u3002<\/p>\n<p>\u7efc\u4e0a\u6240\u8ff0\uff0cpip install\u548cconda install\u5728\u5b89\u88c5\u6e90\u3001\u8de8\u5e73\u53f0\u652f\u6301\u3001\u4f9d\u8d56\u89e3\u6790\u3001\u8f6f\u4ef6\u73af\u5883\u7ba1\u7406\u3001\u8f6f\u4ef6\u5305\u6570\u91cf\u548c\u7ba1\u7406\u7cfb\u7edf\u8f6f\u4ef6\u7b49\u65b9\u9762\u5b58\u5728\u7740\u660e\u663e\u7684\u533a\u522b\u3002\u4e86\u89e3\u8fd9\u4e9b\u533a\u522b\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e0b\u505a\u51fa\u6b63\u786e\u7684\u9009\u62e9\uff0c\u5e76\u6839\u636e\u9700\u6c42\u6765\u9009\u62e9\u9002\u5408\u7684\u5305\u7ba1\u7406\u5de5\u5177\u3002<\/p>\n<p><strong><em>\u5ef6\u4f38\u9605\u8bfb1\uff1apip\u548cconda\u53ef\u4ee5\u6df7\u7528\u5417<\/em><\/strong><\/p>\n<p>pip\u548cconda\u53ef\u4ee5\u6df7\u7528\u3002\u867d\u7136\u5b83\u4eec\u662f\u4e0d\u540c\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u4ee5\u4e00\u8d77\u4f7f\u7528\u3002<\/p>\n<p>\u5f53\u60a8\u4f7f\u7528conda\u521b\u5efa\u4e86\u4e00\u4e2a\u73af\u5883\u65f6\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u6fc0\u6d3b\u8be5\u73af\u5883\u5e76\u4f7f\u7528pip\u6765\u5b89\u88c5\u989d\u5916\u7684Python\u8f6f\u4ef6\u5305\u3002\u8fd9\u662f\u56e0\u4e3aconda\u73af\u5883\u63d0\u4f9b\u4e86\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u5e76\u4e14\u53ef\u4ee5\u4e0epip\u4e00\u8d77\u4f7f\u7528\uff0c\u4ee5\u6ee1\u8db3\u7279\u5b9a\u9879\u76ee\u7684\u9700\u6c42\u3002\u901a\u8fc7\u4f7f\u7528pip\uff0c\u60a8\u53ef\u4ee5\u8f7b\u677e\u5730\u5b89\u88c5\u548c\u7ba1\u7406PyPI\u4e0a\u7684\u8f6f\u4ef6\u5305\uff0c\u5373\u4f7f\u8fd9\u4e9b\u8f6f\u4ef6\u5305\u5728Anaconda\u5b58\u50a8\u5e93\u4e2d\u4e0d\u53ef\u7528\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5982\u679c\u60a8\u5df2\u7ecf\u4f7f\u7528pip\u5b89\u88c5\u4e86\u4e00\u4e9b\u8f6f\u4ef6\u5305\uff0c\u800c\u540e\u51b3\u5b9a\u4f7f\u7528conda\u6765\u7ba1\u7406\u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u201dconda convert\u201d\u547d\u4ee4\u5c06pip\u5b89\u88c5\u7684\u8f6f\u4ef6\u5305\u8f6c\u6362\u4e3aconda\u683c\u5f0f\uff0c\u7136\u540e\u5c06\u5176\u5305\u542b\u5728conda\u73af\u5883\u4e2d\u3002\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u6240\u6709\u7684\u8f6f\u4ef6\u5305\u90fd\u53ef\u4ee5\u4e00\u8d77\u534f\u8c03\u5730\u5de5\u4f5c\u3002<\/p>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5c3d\u7ba1\u53ef\u4ee5\u6df7\u7528pip\u548cconda\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u53ef\u80fd\u4f1a\u51fa\u73b0\u4f9d\u8d56\u51b2\u7a81\u6216\u7248\u672c\u4e0d\u517c\u5bb9\u7684\u95ee\u9898\u3002\u4e3a\u4e86\u907f\u514d\u8fd9\u4e9b\u95ee\u9898\uff0c\u5efa\u8bae\u5728\u521b\u5efa\u548c\u7ba1\u7406\u73af\u5883\u65f6\u5c3d\u53ef\u80fd\u4f7f\u7528conda\uff0c\u5e76\u4f7f\u7528conda\u7684\u73af\u5883\u7ba1\u7406\u529f\u80fd\u6765\u7ba1\u7406\u8f6f\u4ef6\u5305\u548c\u4f9d\u8d56\u9879\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"pip install\u548cconda install\u6709\u4ee5\u4e0b\u533a\u522b\uff1a\u4e00\u3001\u5b89\u88c5\u6e90\u4e0d\u540c\uff1b\u4e8c\u3001\u8de8\u5e73\u53f0\u652f\u6301\u7684\u4e0d\u540c\uff1b\u4e09\u3001\u4f9d\u8d56\u89e3 [&hellip;]","protected":false},"author":1,"featured_media":38631,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/38630"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=38630"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/38630\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/38631"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=38630"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=38630"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=38630"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}