{"id":50302,"date":"2024-12-03T17:43:01","date_gmt":"2024-12-03T09:43:01","guid":{"rendered":"https:\/\/fwq.ai\/blog\/50302\/"},"modified":"2024-12-03T17:43:01","modified_gmt":"2024-12-03T09:43:01","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8windows-7%e7%b3%bb%e7%bb%9f%e4%b8%ad%e4%bd%bf%e7%94%a8pip%e5%ae%89%e8%a3%85pytorch%e7%9a%84%e6%9c%80%e6%96%b0%e7%89%88%e6%9c%ac%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/50302\/","title":{"rendered":"\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f"},"content":{"rendered":"<p><b><\/b>     <\/p>\n<h1>\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f<\/h1>\n<p>\u5c0f\u4f19\u4f34\u4eec\u5bf9\u6587\u7ae0\u7f16\u7a0b\u611f\u5174\u8da3\u5417\uff1f\u662f\u5426\u6b63\u5728\u5b66\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff1f\u5982\u679c\u662f\uff0c\u90a3\u4e48\u672c\u6587\u300a\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f\u300b\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff0c\u672c\u7bc7\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\u3002\u5728\u4e4b\u540e\u7684\u6587\u7ae0\u4e2d\u4e5f\u4f1a\u591a\u591a\u5206\u4eab\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff01<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241116\/17317622206738982cb4fa6.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>pytorch\u5728windows\u4e0a\u7684\u5b89\u88c5\u6559\u7a0b<\/strong><\/p>\n<p><strong>\u95ee\u9898\uff1a<\/strong>\u5982\u4f55\u5728windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5pytorch\u7684\u6700\u65b0\u7248\u672c\uff1f<\/p>\n<p><strong>\u56de\u7b54\uff1a<\/strong><\/p>\n<p>\u5728windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5pytorch\u7684\u6700\u65b0\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>python3 -m pip install --upgrade torch torchvision -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/pre>\n<p><strong>\u547d\u4ee4\u89e3\u91ca\uff1a<\/strong><\/p>\n<ul>\n<li>python3: \u4f7f\u7528python 3.6.5\u6765\u8fd0\u884cpip\u547d\u4ee4\u3002<\/li>\n<li>-m pip install: \u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\u6a21\u5757\u3002<\/li>\n<li>&#8211;upgrade: \u5347\u7ea7\u5df2\u5b89\u88c5\u7684\u6a21\u5757\uff0c\u5982\u679c\u5df2\u6709pytorch\uff0c\u5219\u5c06\u5176\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002<\/li>\n<li>torch torchvision: \u6307\u5b9a\u8981\u5b89\u88c5\u7684\u6a21\u5757\uff0c\u5373pytorch\u548ctorcjvision\u5e93\u3002<\/li>\n<li>-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple: \u6307\u5b9apytorch\u5305\u7684\u4e0b\u8f7d\u6e90\uff0c\u4f7f\u7528\u6e05\u534e\u5927\u5b66\u955c\u50cf\u6e90\u3002<\/li>\n<\/ul>\n<p>\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0cpytorch\u7684\u6700\u65b0\u7248\u672c\u548ctorcjvision\u5c06\u88ab\u5b89\u88c5\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u662f\u5426\u6709\u987a\u5229\u5e2e\u52a9\u4f60\u89e3\u51b3\u95ee\u9898\uff1f\u82e5\u662f\u80fd\u7ed9\u4f60\u5e26\u6765\u5b66\u4e60\u4e0a\u7684\u5e2e\u52a9\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u652f\u6301\u7c73\u4e91\uff01\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4e5f\u53ef\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f \u5c0f\u4f19\u4f34\u4eec\u5bf9\u6587\u7ae0\u7f16\u7a0b\u611f\u5174\u8da3\u5417\uff1f\u662f\u5426\u6b63\u5728\u5b66\u4e60\u76f8\u5173\u77e5\u8bc6\u70b9\uff1f\u5982\u679c\u662f\uff0c\u90a3\u4e48\u672c\u6587\u300a\u5982\u4f55\u5728Windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5PyTorch\u7684\u6700\u65b0\u7248\u672c\uff1f\u300b\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff0c\u672c\u7bc7\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec\u3002\u5728\u4e4b\u540e\u7684\u6587\u7ae0\u4e2d\u4e5f\u4f1a\u591a\u591a\u5206\u4eab\u76f8\u5173\u77e5\u8bc6\u70b9\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u7684\u77e5\u8bc6\u79ef\u7d2f\u6709\u6240\u5e2e\u52a9\uff01 pytorch\u5728windows\u4e0a\u7684\u5b89\u88c5\u6559\u7a0b \u95ee\u9898\uff1a\u5982\u4f55\u5728windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5pytorch\u7684\u6700\u65b0\u7248\u672c\uff1f \u56de\u7b54\uff1a \u5728windows 7\u7cfb\u7edf\u4e2d\u4f7f\u7528pip\u5b89\u88c5pytorch\u7684\u6700\u65b0\u7248\u672c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a python3 -m pip install &#8211;upgrade torch torchvision -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple \u547d\u4ee4\u89e3\u91ca\uff1a python3: \u4f7f\u7528python 3.6.5\u6765\u8fd0\u884cpip\u547d\u4ee4\u3002 -m pip install: \u4f7f\u7528pip\u547d\u4ee4\u5b89\u88c5\u6a21\u5757\u3002 &#8211;upgrade: \u5347\u7ea7\u5df2\u5b89\u88c5\u7684\u6a21\u5757\uff0c\u5982\u679c\u5df2\u6709pytorch\uff0c\u5219\u5c06\u5176\u5347\u7ea7\u5230\u6700\u65b0\u7248\u672c\u3002 torch torchvision: \u6307\u5b9a\u8981\u5b89\u88c5\u7684\u6a21\u5757\uff0c\u5373pytorch\u548ctorcjvision\u5e93\u3002 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple: \u6307\u5b9apytorch\u5305\u7684\u4e0b\u8f7d\u6e90\uff0c\u4f7f\u7528\u6e05\u534e\u5927\u5b66\u955c\u50cf\u6e90\u3002 \u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0cpytorch\u7684\u6700\u65b0\u7248\u672c\u548ctorcjvision\u5c06\u88ab\u5b89\u88c5\u5728\u60a8\u7684\u7cfb\u7edf\u4e0a\u3002 \u4ee5\u4e0a\u5c31\u662f\u672c\u6587\u7684\u5168\u90e8\u5185\u5bb9\u4e86\uff0c\u662f\u5426\u6709\u987a\u5229\u5e2e\u52a9\u4f60\u89e3\u51b3\u95ee\u9898\uff1f\u82e5\u662f\u80fd\u7ed9\u4f60\u5e26\u6765\u5b66\u4e60\u4e0a\u7684\u5e2e\u52a9\uff0c\u8bf7\u5927\u5bb6\u591a\u591a\u652f\u6301\u7c73\u4e91\uff01\u66f4\u591a\u5173\u4e8e\u6587\u7ae0\u7684\u76f8\u5173\u77e5\u8bc6\uff0c\u4e5f\u53ef\u5173\u6ce8\u7c73\u4e91\u516c\u4f17\u53f7\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-50302","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/50302","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=50302"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/50302\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=50302"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=50302"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=50302"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}