{"id":312,"date":"2026-01-26T03:44:53","date_gmt":"2026-01-26T03:44:53","guid":{"rendered":"https:\/\/blog.gpst.net.cn:4008\/?p=312"},"modified":"2026-01-28T06:24:13","modified_gmt":"2026-01-28T06:24:13","slug":"20%e4%b8%aa%e5%b8%b8%e7%94%a8%e7%9a%84python%e9%95%9c%e5%83%8f%e5%9c%b0%e5%9d%80%ef%bc%88%e9%99%84%e6%8c%87%e5%ae%9a%e9%95%9c%e5%83%8f%e6%96%b9%e6%b3%95%ef%bc%89","status":"publish","type":"post","link":"https:\/\/opshub.com.cn\/?p=312","title":{"rendered":"20\u4e2a\u5e38\u7528\u7684Python\u955c\u50cf\u5730\u5740\uff08\u9644\u6307\u5b9a\u955c\u50cf\u65b9\u6cd5\uff09"},"content":{"rendered":"\n<p>\u4f7f\u7528 -i \u53c2\u6570\u6765\u6307\u5b9a\u4f7f\u7528\u955c\u50cf\u5730\u5740<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>pip install -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple opencv-python<\/code><\/pre>\n\n\n\n<p>Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u5177\u6709\u4e30\u5bcc\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u5305\u3002\u5728\u4f7f\u7528Python\u65f6\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4ecePython\u8f6f\u4ef6\u5305\u7d22\u5f15\uff08PyPI\uff09\u4e2d\u5b89\u88c5\u5404\u79cd\u5e93\u548c\u5305\u3002\u7136\u800c\uff0c\u6709\u65f6\u5019\u7531\u4e8e\u7f51\u7edc\u73af\u5883\u7684\u9650\u5236\u6216\u8005\u4e0b\u8f7d\u901f\u5ea6\u8f83\u6162\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u955c\u50cf\u5730\u5740\u6765\u52a0\u5feb\u5b89\u88c5\u901f\u5ea6\u3002<\/p>\n\n\n\n<p>\u4ee5\u4e0b\u662f20\u4e2a\u5e38\u7528\u7684Python\u955c\u50cf\u5730\u5740\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u963f\u91cc\u4e91\u955c\u50cf\uff1ahttps:\/\/mirrors.aliyun.com\/pypi\/simple\/\n\u6e05\u534e\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.tuna.tsinghua.edu.cn\/simple\n\u8c46\u74e3\u955c\u50cf\uff1ahttps:\/\/pypi.doubanio.com\/simple\/\n\u4e2d\u79d1\u5927\u955c\u50cf\uff1ahttps:\/\/pypi.mirrors.ustc.edu.cn\/simple\/\n\u534e\u4e3a\u4e91\u955c\u50cf\uff1ahttps:\/\/mirrors.huaweicloud.com\/repository\/pypi\/simple\/\n\u817e\u8baf\u4e91\u955c\u50cf\uff1ahttps:\/\/mirrors.cloud.tencent.com\/pypi\/simple\/\n\u7f51\u6613\u955c\u50cf\uff1ahttp:\/\/mirrors.163.com\/pypi\/simple\/\n\u4e2d\u56fd\u79d1\u5b66\u6280\u672f\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/mirrors.tuna.tsinghua.edu.cn\/pypi\/web\/simple\/\n\u5317\u4eac\u7406\u5de5\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.bfsu.edu.cn\/simple\/\n\u897f\u5357\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.swu.edu.cn\/simple\/\n\u5357\u4eac\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/mirrors.nju.edu.cn\/pypi\/simple\/\n\u5c71\u4e1c\u7406\u5de5\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.sdutlinux.org\/simple\/\n\u4e2d\u56fd\u79d1\u5b66\u9662\u6df1\u5733\u5148\u8fdb\u6280\u672f\u7814\u7a76\u9662\u955c\u50cf\uff1ahttps:\/\/pypi.sztu.edu.cn\/simple\/\n\u4e1c\u5317\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.neu.edu.cn\/simple\/\n\u897f\u5317\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/mirrors.nwafu.edu.cn\/pypi\/web\/simple\/\n\u5317\u4eac\u5e08\u8303\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.bnu.edu.cn\/simple\/\n\u534e\u4e2d\u79d1\u6280\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.hustunique.com\/simple\/\n\u6b66\u6c49\u7406\u5de5\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.whut.edu.cn\/simple\/\n\u534e\u5357\u7406\u5de5\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.sysu.edu.cn\/simple\/\n\u4e0a\u6d77\u4ea4\u901a\u5927\u5b66\u955c\u50cf\uff1ahttps:\/\/pypi.sjtug.sjtu.edu.cn\/simple\/<\/code><\/pre>\n\n\n\n<p>\u8fd9\u4e9b\u955c\u50cf\u5730\u5740\u63d0\u4f9b\u4e86\u7a33\u5b9a\u7684\u670d\u52a1\uff0c\u5e76\u4e14\u901a\u5e38\u5177\u6709\u826f\u597d\u7684\u4e0b\u8f7d\u901f\u5ea6\u3002\u6839\u636e\u60a8\u7684\u5730\u7406\u4f4d\u7f6e\u548c\u7f51\u7edc\u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u60a8\u7684\u955c\u50cf\u5730\u5740\u6765\u52a0\u901fPython\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f7f\u7528 -i \u53c2\u6570\u6765\u6307\u5b9a\u4f7f\u7528\u955c\u50cf\u5730\u5740 Python\u662f\u4e00\u79cd\u5e7f\u6cdb\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5b83\u5177\u6709\u4e30\u5bcc\u7684\u7b2c\u4e09\u65b9\u5e93\u548c\u5305\u3002\u5728\u4f7f\u7528Python\u65f6\uff0c\u6211\u4eec\u7ecf\u5e38\u9700\u8981\u4ecePython\u8f6f\u4ef6\u5305\u7d22\u5f15\uff08PyPI\uff09\u4e2d\u5b89\u88c5\u5404\u79cd\u5e93\u548c\u5305\u3002\u7136\u800c\uff0c\u6709\u65f6\u5019\u7531\u4e8e\u7f51\u7edc\u73af\u5883\u7684\u9650\u5236\u6216\u8005\u4e0b\u8f7d\u901f\u5ea6\u8f83\u6162\uff0c\u6211\u4eec\u53ef\u80fd\u9700\u8981\u4f7f\u7528\u955c\u50cf\u5730\u5740\u6765\u52a0\u5feb\u5b89\u88c5\u901f\u5ea6\u3002 \u4ee5\u4e0b\u662f20\u4e2a\u5e38\u7528\u7684Python\u955c\u50cf\u5730\u5740\uff1a \u8fd9\u4e9b\u955c\u50cf\u5730\u5740\u63d0\u4f9b\u4e86\u7a33\u5b9a\u7684\u670d\u52a1\uff0c\u5e76\u4e14\u901a\u5e38\u5177\u6709\u826f\u597d\u7684\u4e0b\u8f7d\u901f\u5ea6\u3002\u6839\u636e\u60a8\u7684\u5730\u7406\u4f4d\u7f6e\u548c\u7f51\u7edc\u73af\u5883\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u6700\u9002\u5408\u60a8\u7684\u955c\u50cf\u5730\u5740\u6765\u52a0\u901fPython\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-312","post","type-post","status-publish","format-standard","hentry","category-9"],"_links":{"self":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/312","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=312"}],"version-history":[{"count":1,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions"}],"predecessor-version":[{"id":313,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=\/wp\/v2\/posts\/312\/revisions\/313"}],"wp:attachment":[{"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=312"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=312"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opshub.com.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=312"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}