{"id":45702,"date":"2025-07-30T00:51:25","date_gmt":"2025-07-29T16:51:25","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/45702.html"},"modified":"2025-07-30T00:51:25","modified_gmt":"2025-07-29T16:51:25","slug":"anaconda%e4%b8%8epytorch%e5%ae%89%e8%a3%85%e5%85%a8%e6%94%bb%e7%95%a5%ef%bc%8c%e8%af%a6%e7%bb%86%e4%bf%9d%e5%a7%86%e7%ba%a7%e5%ae%89%e8%a3%85%e6%95%99%e7%a8%8b%ef%bc%88gpu%e7%89%88%e6%9c%ac%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/45702.html","title":{"rendered":"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09"},"content":{"rendered":"<h2 style=\"background-color:transparent\">\u4e00.\u5b89\u88c5Anaconda<\/h2>\n<h4>1.\u5b89\u88c5\u7684\u8d85\u8be6\u7ec6\u6b65\u9aa4<\/h4>\n<p>&#xff08;1&#xff09;\u7531\u4e8e\u5b98\u7f51\u901f\u5ea6\u8f83\u6162&#xff0c;\u9009\u62e9\u955c\u50cf\u6e90\u4e0b\u8f7d<\/p>\n<p>\u955c\u50cf\u6e90\u5730\u5740&#xff1a;https:\/\/mirrors.bfsu.edu.cn\/anaconda\/archive\/<\/p>\n<p>&#xff08;2&#xff09;\u9009\u62e9\u5408\u9002\u7684\u7248\u672c<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165114-6888fc021ba7b.png\" \/><\/p>\n<p>&#xff08;3&#xff09;\u53cc\u51fb\u4e0b\u8f7d\u597d\u7684exe\u6587\u4ef6&#xff0c;\u70b9\u51fbnext&#xff0c;\u968f\u540e\u70b9\u51fbi agree<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc031201f.png\" \/><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc0327fd6.png\" \/><\/p>\n<p>&#xff08;4&#xff09;\u968f\u540e\u9009\u62e9just me<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc0340a5b.png\" \/><\/p>\n<p>&#xff08;5&#xff09;\u5728D\u76d8\u65b0\u5efa\u4e00\u4e2aAnaconda\u6587\u4ef6\u5939&#xff0c;\u968f\u540e\u9009\u62e9\u5408\u9002\u7684\u8def\u5f84<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc035dd76.png\" \/><\/p>\n<p>&#xff08;6&#xff09; \u5728\u968f\u540e\u51fa\u73b0\u7684\u9009\u62e9\u6846\u4e2d\u53ea\u9009\u62e9\u7b2c\u4e8c\u4e2a\u6846\u6846<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc037229d.png\" \/><\/p>\n<h4>\u00a02.\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/h4>\n<p>&#xff08;1&#xff09;\u5728\u684c\u9762\u53f3\u952e\u6309\u4e0b\u70b9\u51fb\u663e\u793a\u8bbe\u7f6e<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc038722a.png\" \/><\/p>\n<p>&#xff08;2&#xff09;\u5728\u67e5\u627e\u4e2d\u641c\u7d22\u73af\u5883\u53d8\u91cf<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165115-6888fc039e081.png\" \/><\/p>\n<p>\u00a0&#xff08;3&#xff09;\u4e4b\u540e\u70b9\u51fb\u73af\u5883\u53d8\u91cf<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165116-6888fc0423162.png\" \/><\/p>\n<p>\u00a0&#xff08;4&#xff09;\u70b9\u51fb\u4e4b\u540e&#xff0c;\u9009\u62e9path<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165116-6888fc043bf52.png\" \/><\/p>\n<p>&#xff08;5&#xff09;\u70b9\u51fb\u65b0\u5efa<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165116-6888fc0487021.png\" \/><\/p>\n<p>\u00a0&#xff08;6&#xff09;\u5c06\u4e0b\u9762\u4e09\u4e2a\u90fd\u6dfb\u52a0\u8fdb\u5165<\/p>\n<p>D:\\\\Anaconda\\\\Library\\\\bin<\/p>\n<p>D:\\\\Anaconda\\\\Scripts<\/p>\n<p>\u00a0D:\\\\Anaconda<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165116-6888fc04c2aa0.png\" \/><\/p>\n<h4>3.\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/h4>\n<p>\u5c06jupyter\u548cprompt\u653e\u7f6e\u5728\u684c\u9762<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165117-6888fc0503114.png\" \/><\/p>\n<h2>\u00a0\u4e8c.\u5b89\u88c5PyTorch&#xff08;GPU\u7248\u672c&#xff09;<\/h2>\n<p><span style=\"color:#fe2c24\">\u5b89\u88c5cpu\u7248\u672c\u53ef\u67e5\u770b\u7eb3\u7c73\u7ea7\u6559\u7a0b<\/span><\/p>\n<p>https:\/\/blog.csdn.net\/weixin_70217160\/article\/details\/149182956?fromshare&#061;blogdetail&#038;sharetype&#061;blogdetail&#038;sharerId&#061;149182956&#038;sharerefer&#061;PC&#038;sharesource&#061;weixin_70217160&#038;sharefrom&#061;from_link<\/p>\n<h3>1.\u521b\u5efa\u865a\u62df\u73af\u5883<\/h3>\n<p>\u70b9\u51fb\u684c\u9762\u4e0a\u7684prompt\u8fdb\u5165anaconda\u7684\u73af\u5883\u4e2d&#xff0c;\u63a5\u4e0b\u6765\u6240\u6709\u7684\u547d\u4ee4\u90fd\u5728Prompt\u4e2d\u8fdb\u884c<\/p>\n<h4>&#xff08;1&#xff09;\u6e05\u5c4f<\/h4>\n<p>cls<\/p>\n<h4>&#xff08;2&#xff09;base\u73af\u5883\u4e0b\u7684\u64cd\u4f5c<\/h4>\n<p>#\u5217\u51fa\u6240\u6709\u7684\u73af\u5883<\/p>\n<p>conda env list<\/p>\n<p>\u4e0b\u9762\u4fe9\u4e2a\u9009\u4e00\u4e2a\u5373\u53ef\u00a0<\/p>\n<p>#\u521b\u5efa\u540d\u4e3a\u201c\u73af\u5883\u540d\u201d\u7684\u865a\u62df\u73af\u5883&#xff0c;\u5e76\u5236\u5b9apython\u7684\u7248\u672c<\/p>\n<p>conda create -n \u73af\u5883\u540d python&#061;3.9<\/p>\n<p>#\u521b\u5efa\u540d\u4e3a\u201c\u73af\u5883\u540d\u201d\u7684\u865a\u62df\u73af\u5883&#xff0c;\u5e76\u5236\u5b9apython\u7684\u7248\u672c\u4e0e\u5b89\u88c5\u8def\u5f84<\/p>\n<p>conda create &#8211;prefix&#061;\u5b89\u88c5\u8def\u5f84\\\\\u00a0\u73af\u5883\u540d python&#061;3.9<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165117-6888fc059778e.png\" \/><\/p>\n<p>\u8fd9\u6837\u865a\u62df\u73af\u5883\u5c31\u521b\u5efa\u597d\u4e86<\/p>\n<p><span style=\"color:#fe2c24\">\u5176\u4ed6\u7684\u4e00\u4e9b\u6307\u4ee4<\/span>\u00a0<\/p>\n<p>#\u5220\u9664\u540d\u4e3a\u201c\u73af\u5883\u540d\u201d\u7684\u865a\u62df\u73af\u5883<\/p>\n<p>conda remove -n \u73af\u5883\u540d &#8211;all\u00a0<\/p>\n<p>#\u8fdb\u5165\u540d\u5b57\u4e3a\u73af\u5883\u540d\u7684\u865a\u62df\u73af\u5883<\/p>\n<p>conda activate \u73af\u5883\u540d\u00a0<\/p>\n<h4>\u00a0&#xff08;3&#xff09;\u865a\u62df\u73af\u5883\u5185\u7684\u64cd\u4f5c<\/h4>\n<p>\u6bcf\u6b21\u64cd\u4f5c\u540e\u5fc5\u987b\u6309\u4e00\u6b21enter<\/p>\n<p><span style=\"color:#fe2c24\">\u6240\u6709\u7684\u5e93\u540c\u7406&#xff08;\u9664\u4e86pytorch&#xff09;<\/span><\/p>\n<p>#\u5217\u51fa\u5f53\u524d\u73af\u5883\u4e0b\u7684\u6240\u6709\u5e93<\/p>\n<p>conda list<\/p>\n<p>#\u5b89\u88c5NumPy\u5e93&#xff0c;\u5e76\u6307\u5b9a\u7248\u672c1.21.5<\/p>\n<p>pip install numpy&#061;&#061;1.21.5 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p>#\u5b89\u88c5Pandas\u5e93&#xff0c;\u5e76\u6307\u5b9a\u7248\u672c1.2.4<\/p>\n<p>pip install Pandas&#061;&#061;1.2.4-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p>#\u5b89\u88c5Matplotlib\u5e93&#xff0c;\u5e76\u6307\u5b9a\u7248\u672c3.5.1pip installMatplotlib&#061;&#061;3.5.1-i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p>#\u67e5\u770b\u5f53\u524d\u73af\u5883\u4e0b\u67d0\u4e2a\u5e93\u7684\u7248\u672c&#xff08;\u4ee5numpy\u4e3a\u4f8b&#xff09;<\/p>\n<p>pip show numpy<\/p>\n<p>#\u9000\u51fa\u865a\u62df\u73af\u5883<\/p>\n<p>conda deactivate<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165118-6888fc0612f1c.png\" \/><\/p>\n<h3>\u00a02.\u67e5\u770b\u81ea\u5df1\u7684\u663e\u5361<\/h3>\n<p>\u540c\u65f6\u6309\u4e0bctrl&#043;shift&#043;esc<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f\u5fc5\u987b\u662fnvidia\u663e\u5361<\/span><\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165118-6888fc063fbc1.png\" \/><\/p>\n<p>\u8f93\u5165win&#043;r\u6253\u5f00cmd<\/p>\n<p>\u8f93\u5165nvidia-smi\u67e5\u770b<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165119-6888fc07e31c0.png\" \/><\/p>\n<h3>3.cuda\u5347\u7ea7&#xff08;\u5982\u679c\u63d0\u793anvcc\u4e0d\u662f\u4ec0\u4e48\u4ec0\u4e48\u547d\u4ee4&#xff09;<\/h3>\n<p>&#xff08;1&#xff09;\u684c\u9762\u70b9\u51fb\u53f3\u952e&#xff0c;\u9009\u62e9nvidia\u63a7\u5236\u9762\u677f<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165120-6888fc08ac1e5.png\" \/><\/p>\n<p>\u00a0&#xff08;2&#xff09;\u8fd9\u91cc\u9009\u62e9\u7248\u672c\u6bd4\u5979\u4f4e\u7684\u5c31\u884c<\/p>\n<p>\u8fdb\u5165\u5b98\u7f51&#xff1a;https:\/\/developer.nvidia.com\/cuda-toolkit-archive<\/p>\n<p>\u8fd9\u91cc\u6211\u9009\u62e912.8.1<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165122-6888fc0abe550.png\" \/><\/p>\n<p>&#xff08;3&#xff09;\u70b9\u51fb\u8fdb\u5165&#xff0c;\u9009\u62e9\u5408\u9002\u7684\u7248\u672c<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165122-6888fc0ae7677.png\" \/><\/p>\n<p>&#xff08;4&#xff09;\u4e0b\u8f7d\u597d\u4e4b\u540e&#xff0c;\u5c06exe\u6587\u4ef6\u653e\u7f6e\u5728\u65b0\u5efa\u7684D:\\\\CUDA\u5185&#xff0c;\u70b9\u51fbexe\u6587\u4ef6&#xff0c;\u5927\u7ea6\u8981\u7b49\u4e24\u5206\u949f&#xff0c;\u4f1a\u5f39\u51fa\u63d0\u793a\u6846&#xff0c;\u8fd9\u91cc\u8981\u9009\u62e9\u4e34\u65f6\u7684\u89e3\u538b\u6587\u4ef6\u5939&#xff0c;\u8003\u8651\u5230\u89e3\u538b\u540e\u9700\u8981\u5360\u7528\u5927\u7ea67G\u7684\u5185\u5b58&#xff0c;\u56e0\u6b64\u5efa\u8bae\u653e\u5728D:\\\\CUDA\\\\Tem\u5185&#xff0c;\u5b89\u88c5\u7ed3\u675f\u540e&#xff0c;\u8be5\u4e34\u65f6\u89e3\u538b\u6587\u4ef6\u5939\u4f1a\u81ea\u52a8\u5220\u9664\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30mstloy2nq1y.png\" \/><\/p>\n<p>&#xff08;5&#xff09;\u89e3\u538b\u597d\u540e&#xff0c;\u8fdb\u5b89\u88c5\u754c\u9762&#xff0c;\u540c\u610f\u5e76\u7ee7\u7eed\u540e&#xff0c;\u70b9\u51fb\u201c\u81ea\u5b9a\u4e49\u201d\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30vsucwhrui3h.png\" \/><\/p>\n<p>&#xff08;6&#xff09;\u63a5\u4e0b\u6765&#xff0c;\u4ec5\u4ec5\u9009\u62e94\u5927\u9879\u4e2d\u7684CUDA&#xff0c;\u5e76\u53d6\u6d88CUDA\u4e2d\u5173\u4e8eVS\u7684\u9009\u9879\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30y1j0nd43ljl.png\" \/><\/p>\n<p style=\"text-align:center\">\u00a0<img decoding=\"async\" alt=\"\" src=\"2025-07-30aty1ueocsko.png\" \/><\/p>\n<p>&#xff08;7&#xff09;\u5b8c\u6210\u540e&#xff0c;\u6309\u7167\u9ed8\u8ba4\u7684C\u76d8\u8def\u5f84\u8fdb\u884c\u5b89\u88c5&#xff08;\u5927\u7ea67G&#xff09;\u5373\u53ef<\/p>\n<p>&#xff08;8&#xff09;\u73b0\u5728\u56de\u5934\u67e5\u770b\u4e34\u65f6\u89e3\u538b\u6587\u4ef6\u5939D:\\\\CUDA\\\\Tem&#xff0c;\u4f1a\u53d1\u73b0\u5df2\u7ecf\u6d88\u5931&#xff0c;\u987a\u4fbf\u53ef\u4ee5\u5220\u9664D:\\\\CUDA\u4e86\u3002\u63a5\u4e0b\u6765\u914d\u7f6e\u73af\u5883\u53d8\u91cf&#xff08;\u53c2\u8003\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u6253\u5f00\u65b9\u5f0f&#xff09;&#xff0c;\u5982\u679c\u4f60\u662f\u6309\u7167\u9ed8\u8ba4\u8def\u5f84\u7684\u8bdd&#xff0c;\u5176\u8def\u5f84\u5e94\u8be5\u662f&#xff1a;<\/p>\n<p>\u26abC:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA<\/p>\n<p>\u26abC:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.3\\\\lib\\\\x64<\/p>\n<p>\u26abC:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.3\\\\bin<\/p>\n<p>\u26abC:\\\\Program Files\\\\NVIDIA GPU Computing Toolkit\\\\CUDA\\\\v11.3\\\\libnvvp<\/p>\n<p>\u5982\u679c\u4f60\u5fd8\u4e86\u4f60\u7684\u8def\u5f84&#xff0c;\u7528everything\u641c\u7d22\u51fa\u6765\u5373\u53ef\u3002<\/p>\n<p>\u6700\u540e&#xff0c;\u56de\u5934\u68c0\u67e5\u4e00\u4e0bCUDA\u7248\u672c&#xff0c;Win&#043;R\u540e\u8f93\u5165cmd&#xff0c;\u8fdb\u5165\u547d\u4ee4\u63d0\u793a\u7b26&#xff0c;\u8f93\u5165nvcc -V<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30z50xtldugfk.png\" \/><\/p>\n<p>\u6ce8\u610f&#xff0c;\u5c3d\u7ba1\u60a8\u8f93\u5165nvidia-smi\u53ef\u80fd\u4ecd\u7136\u663e\u793a\u8001\u7248\u672c&#xff0c;\u4f46\u7ecf\u67e5\u9605\u8d44\u6599&#xff0c;CUDA\u7684\u5b9e\u9645\u4f7f\u7528\u7248\u672c\u4ee5nvcc -V\u4e2d\u7684CUDA\u7248\u672c\u4e3a\u51c6\u3002<\/p>\n<h3>4.\u5b89\u88c5pytorch<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PyTorch\u4e00\u5206\u4e3a\u4e09&#xff1a;torch\u3001torchvision\u4e0etorchaudio\u3002\u8fd9\u4e09\u4e2a\u5e93\u4e2d&#xff0c;torch\u67092G\u5de6\u53f3&#xff0c;\u800ctorchvision\u548ctorchaudio\u53ea\u67092M\u5de6\u53f3&#xff0c;\u56e0\u6b64\u4e00\u822c\u5728\u4ee3\u7801\u91cc\u53ea\u4f1aimport torch\u3002\u5f53torch\u7684\u7248\u672c\u7ed9\u5b9a\u540e&#xff0c;\u53e6\u5916\u4e24\u4e2a\u9644\u4ef6\u7684\u7248\u672c\u4e5f\u552f\u4e00\u786e\u5b9a\u4e86\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5b89\u88c5torch\u524d&#xff0c;\u5148\u7ed9\u5b89\u88c5\u8868&#xff0c;\u5176\u4e2dcu113\u5373cuda11.3&#xff0c;cp39\u5373Python\u89e3\u91ca\u5668\u7684\u7248\u672c\u662fPython3.9\u3002\u6ce8&#xff1a;NVIDIA\u663e\u536130\u7cfb\u5217&#xff08;\u5982NVIDIA GeForce RTX3050&#xff09;\u53ea\u80fd\u5b89\u88c5cu110\u53ca\u5176\u4ee5\u540e\u7684\u7248\u672c\u3002<\/p>\n<p><span style=\"color:#fe2c24\">\u4e00\u5b9a\u8981\u6bd4\u81ea\u5df1\u7684cuda\u7248\u672c\u4f4e<\/span><\/p>\n<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30nqa2hcptm41.png\" \/><\/p>\n<table>\n<tr>PyTorch \u7248\u672cCUDA \u7248\u672c\u652f\u6301Python \u7248\u672c\u652f\u6301pip \u5b89\u88c5\u547d\u4ee4\u793a\u4f8b&#xff08;CUDA 12.8&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>2.7.1<\/td>\n<td>12.1\/12.6\/12.8<\/td>\n<td>3.8-3.12<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu128<\/td>\n<\/tr>\n<tr>\n<td>2.6.0<\/td>\n<td>11.8\/12.1\/12.6<\/td>\n<td>3.8-3.12<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu126<\/td>\n<\/tr>\n<tr>\n<td>2.5.0<\/td>\n<td>11.8\/12.1\/12.6<\/td>\n<td>3.8-3.11<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu121<\/td>\n<\/tr>\n<tr>\n<td>2.4.0<\/td>\n<td>11.8\/12.1<\/td>\n<td>3.8-3.11<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu118<\/td>\n<\/tr>\n<tr>\n<td>2.3.1<\/td>\n<td>11.8\/12.1<\/td>\n<td>3.8-3.11<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu121<\/td>\n<\/tr>\n<tr>\n<td>2.2.0<\/td>\n<td>11.8\/12.1<\/td>\n<td>3.8-3.11<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu121<\/td>\n<\/tr>\n<tr>\n<td>2.1.0<\/td>\n<td>11.8\/12.1<\/td>\n<td>3.8-3.10<\/td>\n<td>pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu121<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"color:#fe2c24\">\u539f\u547d\u4ee4&#xff1a;pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/download.pytorch.org\/whl\/cu126<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u4fee\u6539\u540e&#xff08;\u6dfb\u52a0\u4e86\u955c\u50cf\u6e90&#xff09;\u547d\u4ee4&#xff1a;pip3 install torch torchvision torchaudio &#8211;index-url https:\/\/mirrors.nju.edu.cn\/pytorch\/whl\/cu126<\/span><\/p>\n<h3>5.\u68c0\u9a8ccuda\u662f\u5426\u53ef\u7528<\/h3>\n<h4>&#xff08;1&#xff09;\u65b9\u6cd5\u4e00&#xff1a;<\/h4>\n<p>\u67e5\u770b\u5f53\u524d\u73af\u5883\u7684\u6240\u6709\u5e93\u8fdb\u5165\u73af\u5883\u540e&#xff0c;\u4f7f\u7528conda list\u547d\u4ee4\u5217\u51fa\u5f53\u524d\u7684\u6240\u6709\u5e93<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-303xbqnun5gl5.png\" \/><\/p>\n<h4>&#xff08;2&#xff09;\u65b9\u6cd5\u4e8c&#xff1a;<\/h4>\n<p>\u8fdb\u5165Python\u89e3\u91ca\u5668\u68c0\u9a8c<\/p>\n<p>\u9996\u5148&#xff0c;\u8fdb\u5165\u865a\u62df\u73af\u5883DL\u540e&#xff0c;\u8f93\u5165python\u4ee5\u8fdb\u5165\u89e3\u91ca\u5668<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30foqfmwwchuf.png\" \/><\/p>\n<p>\u00a0\u8f93\u5165import torch\u5bfc\u5165torch\u5e93&#xff0c;\u5982\u56fe\u6240\u793a\u3002\u82e5torch\u5b89\u88c5\u5931\u8d25&#xff0c;\u5219\u4f1a\u8fd4\u56deNo module named \u2018torch\u2019\u3002\u82e5\u5b89\u88c5\u6210\u529f&#xff0c;\u4e0d\u4f1a\u8fd4\u56de\u4efb\u4f55\u8bed\u53e5&#xff0c;\u540c\u65f6\u5728\u4e0b\u4e00\u884c\u51fa\u73b0\u201c&gt;&gt;&gt;\u201d&#xff0c;\u63d0\u793a\u6211\u4eec\u53ef\u4ee5\u7ee7\u7eed\u6572\u4ee3\u7801\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30ycjgspj1ocl.png\" \/><\/p>\n<p>\u6700\u540e\u4e00\u6b65&#xff0c;\u8f93\u5165torch.cuda.is_available()&#xff0c;\u5982\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30f3gbaalo0jb.png\" \/><\/p>\n<p>\u9664\u4e86\u4e0a\u8ff0\u4e24\u4e2a\u65b9\u6cd5&#xff0c;\u8fd8\u6709\u4e24\u79cd\u65b9\u6cd5&#xff0c;\u5177\u4f53\u89c13\u5c0f\u8282\u548c4\u5c0f\u8282\u3002\u00a0<\/p>\n<h2>\u4e09.Jupyter\u4ee3\u7801\u7f16\u8f91\u5668<\/h2>\n<p>\u8ba1\u7b97\u673a\u7528\u6237\u540d&#xff08;\u5373C:\\\\Users\\\\\u7528\u6237\u540d&#xff09;\u4e3a\u4e2d\u6587&#xff0c;\u65e0\u6cd5\u517c\u5bb9Jupyter\u3002\u5927\u5bb6\u53ef\u4ee5\u6253\u5f00Prompt\u68c0\u67e5\u81ea\u5df1\u7684\u7528\u6237\u540d<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30hxem3ou30zw.png\" \/><\/p>\n<p>\u5982\u679c\u53d1\u73b0\u81ea\u5df1\u7684\u7528\u6237\u540d\u643a\u5e26\u6709\u4e2d\u6587&#xff0c;\u9664\u4e86\u66f4\u6539\u81ea\u5df1\u7684\u7528\u6237\u540d\u4e3a\u82f1\u6587\u6570\u5b57\u7ec4\u5408\u5916&#xff0c;\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8df3\u8fc7\u672c\u7ae0&#xff0c;\u4f7f\u7528\u7b2c\u56db\u7ae0\u7684PyCharm\u4ee3\u7801\u7f16\u8f91\u5668\u5373\u53ef\u3002<\/p>\n<h3>1. \u4fee\u6539\u5de5\u4f5c\u8def\u5f84<\/h3>\n<p>Jupyter\u521d\u59cb\u7684\u5de5\u4f5c\u8def\u5f84\u4e3a\u3010C:\\\\Users\\\\\u7528\u6237\u540d\u3011&#xff0c;\u9700\u8981\u8fdb\u884c\u4fee\u6b63&#xff0c;\u5c06\u5176\u8f6c\u79fb\u5230\u65b0\u5efa\u7684\u3010D:\\\\Jupyter\u3011\u4f4d\u7f6e\u3002<\/p>\n<p>\u2460\u65b0\u5efaD:\\\\Jupyter&#xff1b;<\/p>\n<p>\u2461\u6253\u5f00\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u4e2d\u7684Prompt&#xff1b;<\/p>\n<p>\u2462\u8f93\u5165jupyter notebook &#8211;generate-config\u547d\u4ee4\u5e76\u6267\u884c&#xff1b;<\/p>\n<p>\u2463\u6253\u5f00\u4e0a\u4e00\u6b65\u751f\u6210\u7684\u914d\u7f6e\u6587\u4ef6\u5730\u5740&#xff0c;<\/p>\n<p>\u5373C:\\\\Users\\\\\u7528\u6237\u540d\\\\.jupyter<\/p>\n<p>\u2464\u5728jupyter_notebook_config.py&#xff08;\u4ee5\u8bb0\u4e8b\u672c\u65b9\u5f0f\u6253\u5f00&#xff09;\u4e2d\u4f7f\u7528Ctrl&#043; F\u67e5\u627e\u5e76\u4e14\u4fee\u6539\u5982\u4e0b\u914d\u7f6e\u9879&#xff1a;<\/p>\n<p>\u4fee\u6539\u524d&#xff1a;#c.NotebookApp.notebook_dir &#061; &#039;&#039;<\/p>\n<p>\u4fee\u6539\u540e&#xff1a;c.NotebookApp.notebook_dir &#061; &#039;D:\\\\Jupyter&#039;\u4e5f\u5373\u5220\u9664\u524d\u9762\u7684#\u53f7\u6ce8\u91ca&#xff0c;\u5728\u540e\u9762\u7684\u5355\u5f15\u53f7\u91cc\u8f93\u5165\u8981\u8bbe\u7f6e\u7684\u76ee\u5f55\u8def\u5f84&#xff0c;<\/p>\n<p><span style=\"color:#fe2c24\">\u6ce8\u610f&#xff1a;\u65b0\u7248\u672c\u7684\u8def\u5f84\u53ef\u80fd\u4f1a\u5728\u4e0b\u9762\u8fd9\u4e2a\u4f4d\u7f6e\u00a0<\/span><\/p>\n<p><img decoding=\"async\" alt=\"\" src=\"2025-07-30u2tvypbgcmf.png\" \/>\u6ce8\u610f&#xff0c;&#039;D:\\\\Jupyter&#039;\u4e2d\u4e0d\u80fd\u6709\u7a7a\u683c&#xff0c;\u5426\u5219Jupyter\u6253\u5f00\u5c31\u95ea\u9000\u3002\u4fdd\u5b58\u540e\u5173\u95ed\u3002<\/p>\n<p>\u2465\u627e\u5230\u684c\u9762\u7684jupyter notebook\u5feb\u6377\u56fe\u6807&#xff0c;\u9f20\u6807\u53cd\u952e&gt;&gt;\u5c5e\u6027&gt;&gt;\u5feb\u6377\u65b9\u5f0f&gt;&gt;\u76ee\u6807&#xff0c;\u5220\u9664\u6700\u540e\u7684&#034;%USERPROFILE%\/&#034;\u3002<\/p>\n<h3>2.\u4fee\u6539\u9ed8\u8ba4\u5b57\u4f53<\/h3>\n<p>\u521d\u59cb\u5b57\u4f53\u53ef\u4ee5\u8fdb\u884c\u4fee\u6539&#xff0c;\u4fee\u6539\u6d41\u7a0b\u5982\u4e0b\u3002<\/p>\n<p>\u2460\u6253\u5f00\u5982\u4e0b\u5730\u5740<\/p>\n<p>D:\\\\Anaconda\\\\Lib\\\\site-packages\\\\notebook\\\\static\\\\components\\\\codemirror\\\\lib<\/p>\n<p>\u2461\u6253\u5f00codemirror.css\u6587\u4ef6&#xff1b;<\/p>\n<p>\u2462Ctrl&#043;F&#xff0c;<\/p>\n<p>\u641c\u7d22\u201cfont-family: monospace;\u201d\u7684\u6587\u5b57&#xff0c;\u5e76\u5c06\u5176\u6539\u4e3a<\/p>\n<p>font-family: &#039;Fira Code Light&#039;,&#039;Consolas&#039;;<\/p>\n<h3>3.\u66f4\u6539\u4e3b\u9898&#xff08;2\u6709\u95ee\u9898\u5c31\u76f4\u63a53&#xff09;<\/h3>\n<h4>&#xff08;1&#xff09;\u5728\u73af\u5883\u91cc\u4e0b\u8f7d<\/h4>\n<p>pip install jupyterthemes<\/p>\n<h4>&#xff08;2&#xff09;\u67e5\u770b\u73af\u5883<\/h4>\n<p>jt -l<\/p>\n<h4>&#xff08;3&#xff09;\u5e94\u7528\u73af\u5883<\/h4>\n<p>\u5177\u4f53\u7d20\u6750https:\/\/www.cnblogs.com\/shanger\/p\/12006161.html<\/p>\n<h3>4.\u865a\u62df\u73af\u5883\u8fde\u63a5Jupyter<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6211\u4eec\u5df2\u7ecf\u5728Anaconda\u91cc\u521b\u5efa\u4e86\u4e00\u4e2a\u53ebDL\u7684\u865a\u62df\u73af\u5883&#xff0c;\u4f46\u662f\u73b0\u5728\u8fd9\u4e2a\u53ebDL\u7684\u865a\u62df\u73af\u5883\u6ca1\u6709\u8fde\u63a5Jupyter&#xff0c;\u6362\u53e5\u8bdd\u8bf4&#xff0c;Jupyter\u73b0\u5728\u4ec5\u4ec5\u80fd\u4e0ebase\u73af\u5883\u76f8\u8fde\u3002\u4e3a\u8ba9\u865a\u62df\u73af\u5883\u4e0eJupyter\u76f8\u8fde&#xff0c;\u8bf7\u5728Prompt\u7684\u865a\u62df\u73af\u5883\u4e0b\u64cd\u4f5c\u4e0b\u5217\u547d\u4ee4\u3002\u00a0\u00a0\u00a0<\/p>\n<h4>&#xff08;1&#xff09;\u8fdb\u5165\u81ea\u5df1\u7684\u865a\u62df\u73af\u5883\u4e2d<\/h4>\n<p>#\u5b89\u88c5ipykernel<\/p>\n<p>pip install ipykernel -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<h4>&#xff08;2&#xff09;\u5bfc\u5165<\/h4>\n<p>#\u5c06\u865a\u62df\u73af\u5883\u5bfc\u5165Jupyter\u7684kernel\u4e2d<\/p>\n<p>python -m ipykernel install &#8211;user &#8211;name&#061;\u73af\u5883\u540d<\/p>\n<h4>&#xff08;3&#xff09;\u5378\u8f7d&#xff08;\u4e0b\u8f7d\u7684\u65f6\u5019\u4e0d\u9700\u8981&#xff09;\u00a0<\/h4>\n<p>#\u5220\u9664\u865a\u62df\u73af\u5883\u7684kernel\u5185\u6838<\/p>\n<p>jupyter kernelspec remove\u73af\u5883\u540d<\/p>\n<p>\u5728Jupyter\u91cc&#xff0c;\u5207\u6362\u5230DL\u5185\u6838\u540e&#xff0c;\u70b9\u51fbNew&#xff0c;\u65b0\u5efa\u4e00\u4e2aDL\u5185\u6838\u7684\u811a\u672c\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30a2mn44m2pmr.png\" \/><\/p>\n<p>\u00a0\u5728DL\u5185\u6838\u7684\u811a\u672c\u4e0b&#xff0c;\u8f93\u5165\u4e24\u6bb5\u4ee3\u7801\u540e\u8fd0\u884c&#xff0c;<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30kmgldooxazy.png\" \/><\/p>\n<h2 style=\"background-color:transparent\">\u4e94.\u5b89\u88c5pycharm<\/h2>\n<h3>1.\u5b89\u88c5pycharm<\/h3>\n<p>\u9996\u5148&#xff0c;\u53bbjetbrains\u516c\u53f8\u7684\u5b98\u7f51\u4e0b\u8f7dPyCharm&#xff0c;\u5730\u5740\u4e3ahttps:\/\/www.jetbrains.com\/pycharm\/download\/other.html<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30rdojgzzmpzk.png\" \/><\/p>\n<p>\u5b89\u88c5\u65f6&#xff0c;\u8bf7\u653e\u5728D\u76d8\u7684\u65b0\u5efa\u6587\u4ef6\u5939&#xff1a;D:\\\\PyCharm\u91cc\u3002\u9009\u597d\u5b89\u88c5\u5730\u5740\u540e&#xff0c;\u8bf7\u52fe\u9009\u5982\u56fe\u6240\u793a\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-3005tylb4w00s.png\" \/><\/p>\n<p>\u9009\u62e9\u52fe\u9009\u7684\u9879\u76ee\u00a0<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-305si45byl23l.png\" \/><\/p>\n<h3 style=\"background-color:transparent\">2.\u8bbe\u7f6epycharm<\/h3>\n<p>\u5b89\u88c5\u597d\u540e&#xff0c;\u5b83\u4f1a\u51fa\u73b0\u5728\u684c\u9762&#xff0c;\u53cc\u51fb\u8fdb\u5165\u3002\u7b2c\u4e00\u4e2a\u5c94\u8def&#xff0c;\u9009\u62e9\u7b2c\u4e8c\u4e2a<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"2025-07-30crp3f0cbyj3.png\" \/><\/p>\n<p>pycharm\u7684\u7f16\u8f91\u5668\u9009\u62e9\u53ef\u4ee5\u67e5\u770b\u6211\u4e4b\u524d\u7684<\/p>\n<p>https:\/\/blog.csdn.net\/weixin_70217160\/article\/details\/149182956?fromshare&#061;blogdetail&#038;sharetype&#061;blogdetail&#038;sharerId&#061;149182956&#038;sharerefer&#061;PC&#038;sharesource&#061;weixin_70217160&#038;sharefrom&#061;from_link<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb821\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf3\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Anaconda\u548cPyTorch\uff08GPU\u7248\u672c\uff09\u7684\u5b89\u88c5\u914d\u7f6e\u6d41\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09Anaconda\u7684\u955c\u50cf\u6e90\u4e0b\u8f7d\u3001\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u53ca\u5feb\u6377\u65b9\u5f0f\u8bbe\u7f6e\uff1b2\uff09PyTorch GPU\u7248\u672c\u7684\u5b89\u88c5\u6b65\u9aa4\uff0c\u5305\u542b\u865a\u62df\u73af\u5883\u521b\u5efa\u3001CUDA\u5347\u7ea7\u3001\u7248\u672c\u5339\u914d\u548c\u5b89\u88c5\u9a8c\u8bc1\uff1b3\uff09Jupyter\u7f16\u8f91\u5668\u7684\u8def\u5f84\u4fee\u6539\u3001\u5b57\u4f53\u8c03\u6574\u548c\u865a\u62df\u73af\u5883\u8fde\u63a5\u65b9\u6cd5\uff1b4\uff09PyCharm\u7684\u5b89\u88c5\u4e0e\u57fa\u7840\u8bbe\u7f6e\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u4ece\u73af\u5883\u642d\u5efa\u5230\u5de5\u5177\u914d\u7f6e\u7684\u5b8c\u6574\u6307\u5bfc\uff0c\u5305\u542b\u955c\u50cf\u6e90\u4f7f\u7528\u3001\u7248\u672c\u9009\u62e9\u5efa\u8bae\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff0c\u9002\u5408\u9700\u8981\u914d\u7f6ePython\u6df1\u5ea6\u5b66\u4e60\u5f00\u53d1\u73af\u5883\u7684\u7528\u6237\u53c2\u8003\u3002<\/p>\n","protected":false},"author":2,"featured_media":45682,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[82,81,4345,152,190],"topic":[],"class_list":{"0":"post-45702","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-pycharm","9":"tag-python","11":"tag-pytorch","12":"tag-190"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/45702.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb821\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf3\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Anaconda\u548cPyTorch\uff08GPU\u7248\u672c\uff09\u7684\u5b89\u88c5\u914d\u7f6e\u6d41\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09Anaconda\u7684\u955c\u50cf\u6e90\u4e0b\u8f7d\u3001\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u53ca\u5feb\u6377\u65b9\u5f0f\u8bbe\u7f6e\uff1b2\uff09PyTorch GPU\u7248\u672c\u7684\u5b89\u88c5\u6b65\u9aa4\uff0c\u5305\u542b\u865a\u62df\u73af\u5883\u521b\u5efa\u3001CUDA\u5347\u7ea7\u3001\u7248\u672c\u5339\u914d\u548c\u5b89\u88c5\u9a8c\u8bc1\uff1b3\uff09Jupyter\u7f16\u8f91\u5668\u7684\u8def\u5f84\u4fee\u6539\u3001\u5b57\u4f53\u8c03\u6574\u548c\u865a\u62df\u73af\u5883\u8fde\u63a5\u65b9\u6cd5\uff1b4\uff09PyCharm\u7684\u5b89\u88c5\u4e0e\u57fa\u7840\u8bbe\u7f6e\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u4ece\u73af\u5883\u642d\u5efa\u5230\u5de5\u5177\u914d\u7f6e\u7684\u5b8c\u6574\u6307\u5bfc\uff0c\u5305\u542b\u955c\u50cf\u6e90\u4f7f\u7528\u3001\u7248\u672c\u9009\u62e9\u5efa\u8bae\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff0c\u9002\u5408\u9700\u8981\u914d\u7f6ePython\u6df1\u5ea6\u5b66\u4e60\u5f00\u53d1\u73af\u5883\u7684\u7528\u6237\u53c2\u8003\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/45702.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-29T16:51:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165114-6888fc021ba7b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45702.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/45702.html\",\"name\":\"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-29T16:51:25+00:00\",\"dateModified\":\"2025-07-29T16:51:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/45702.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/45702.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/45702.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/45702.html","og_locale":"zh_CN","og_type":"article","og_title":"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb821\u6b21\uff0c\u70b9\u8d5e27\u6b21\uff0c\u6536\u85cf3\u6b21\u3002\u672c\u6587\u8be6\u7ec6\u4ecb\u7ecd\u4e86Anaconda\u548cPyTorch\uff08GPU\u7248\u672c\uff09\u7684\u5b89\u88c5\u914d\u7f6e\u6d41\u7a0b\u3002\u4e3b\u8981\u5185\u5bb9\u5305\u62ec\uff1a1\uff09Anaconda\u7684\u955c\u50cf\u6e90\u4e0b\u8f7d\u3001\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u53ca\u5feb\u6377\u65b9\u5f0f\u8bbe\u7f6e\uff1b2\uff09PyTorch GPU\u7248\u672c\u7684\u5b89\u88c5\u6b65\u9aa4\uff0c\u5305\u542b\u865a\u62df\u73af\u5883\u521b\u5efa\u3001CUDA\u5347\u7ea7\u3001\u7248\u672c\u5339\u914d\u548c\u5b89\u88c5\u9a8c\u8bc1\uff1b3\uff09Jupyter\u7f16\u8f91\u5668\u7684\u8def\u5f84\u4fee\u6539\u3001\u5b57\u4f53\u8c03\u6574\u548c\u865a\u62df\u73af\u5883\u8fde\u63a5\u65b9\u6cd5\uff1b4\uff09PyCharm\u7684\u5b89\u88c5\u4e0e\u57fa\u7840\u8bbe\u7f6e\u3002\u6587\u7ae0\u63d0\u4f9b\u4e86\u4ece\u73af\u5883\u642d\u5efa\u5230\u5de5\u5177\u914d\u7f6e\u7684\u5b8c\u6574\u6307\u5bfc\uff0c\u5305\u542b\u955c\u50cf\u6e90\u4f7f\u7528\u3001\u7248\u672c\u9009\u62e9\u5efa\u8bae\u548c\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u65b9\u6cd5\uff0c\u9002\u5408\u9700\u8981\u914d\u7f6ePython\u6df1\u5ea6\u5b66\u4e60\u5f00\u53d1\u73af\u5883\u7684\u7528\u6237\u53c2\u8003\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/45702.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-29T16:51:25+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/07\/20250729165114-6888fc021ba7b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/45702.html","url":"https:\/\/www.wsisp.com\/helps\/45702.html","name":"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-29T16:51:25+00:00","dateModified":"2025-07-29T16:51:25+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/45702.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/45702.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/45702.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Anaconda\u4e0ePyTorch\u5b89\u88c5\u5168\u653b\u7565\uff0c\u8be6\u7ec6\u4fdd\u59c6\u7ea7\u5b89\u88c5\u6559\u7a0b\uff08gpu\u7248\u672c\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=45702"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/45702\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/45682"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=45702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=45702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=45702"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=45702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}