{"id":32581,"date":"2025-04-24T20:17:53","date_gmt":"2025-04-24T12:17:53","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/32581.html"},"modified":"2025-04-24T20:17:53","modified_gmt":"2025-04-24T12:17:53","slug":"%e3%80%90ai%e8%ae%ad%e7%bb%83%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%e3%80%91%e5%9c%a8windows11%e4%b8%8a%e6%90%ad%e5%bb%bawsl2ubuntu22-04tensorflowgpu%e6%9c%ba%e5%99%a8%e5%ad%a6%e4%b9%a0%e8%ae%ad","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/32581.html","title":{"rendered":"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883"},"content":{"rendered":"<h3 style=\"background-color:transparent\">\u4e00\u3001\u5b89\u88c5Ubuntu<\/h3>\n<p>\u62ff\u5230\u8be5\u6587\u4ef6Ubuntu-22.04.tar<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"496\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121745-680a2be9c6e7a.png\" width=\"1119\" \/> \u901a\u8fc7wsl\u5bfc\u5165\u8be5\u865a\u62df\u673a\u955c\u50cf&#xff0c;\u7136\u540e\u67e5\u770bwsl\u865a\u62df\u673a\u5217\u8868\u3002<\/p>\n<p>wsl &#8211;import Ubuntu-22.04-tensorflow D:\\\\wsl-data\\\\Ubuntu-22.04-tensorflow D:\\\\wsl-data\\\\temp\\\\Ubuntu-22.04.tar<\/p>\n<p>wsl -l <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"429\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121746-680a2bea23173.png\" width=\"1111\" \/><\/p>\n<p>\u8fdb\u5165\u865a\u62df\u673a<\/p>\n<p>wsl -d Ubuntu-22.04-tensorflow <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"443\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121746-680a2bea6f1b6.png\" width=\"996\" \/><\/p>\n<\/p>\n<h3 style=\"background-color:transparent\">\u4e8c\u3001Ubuntu\u5b89\u88c5anaconda<\/h3>\n<h4 style=\"background-color:transparent\">1. \u590d\u5236\u4e0b\u8f7d\u94fe\u63a5<\/h4>\n<p>\u70b9\u6b64\u94fe\u63a5\u8fdb\u5165\u5b98\u7f51&#xff0c;\u53f3\u952e\u590d\u5236\u94fe\u63a5&#xff0c;\u8fd9\u662f\u6211\u590d\u5236\u5230\u6b64\u94fe\u63a5&#xff08;https:\/\/repo.anaconda.com\/archive\/Anaconda3-2024.10-1-Linux-x86_64.sh&#xff09;<\/p>\n<p>Download Now | Anaconda<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"992\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121746-680a2beaac7c1.png\" width=\"1910\" \/><\/p>\n<h4 style=\"background-color:transparent\">2.\u901a\u8fc7wget\u4e0b\u8f7danaconda<\/h4>\n<p>\u547d\u4ee4\u683c\u5f0f&#xff1a;wget [\u4e0a\u9762\u590d\u5236\u7684xx.sh\u94fe\u63a5]<\/p>\n<p>wget https:\/\/repo.anaconda.com\/archive\/Anaconda3-2024.10-1-Linux-x86_64.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"598\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121747-680a2beb74a9a.png\" width=\"1105\" \/><\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"474\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121747-680a2bebd8a2d.png\" width=\"1096\" \/><\/p>\n<h4 style=\"background-color:transparent\">3.\u5b89\u88c5anaconda<\/h4>\n<p>\u6267\u884c\u5b89\u88c5\u547d\u4ee4&#xff0c;\u6309\u56de\u8f66\u5065Enter\u786e\u8ba4\u5b89\u88c5<\/p>\n<p>sh Anaconda3-2024.10-1-Linux-x86_64.sh <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"156\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121748-680a2bec45df9.png\" width=\"790\" \/><\/p>\n<p>\u6b64\u65f6&#xff0c;\u6309Page Down\u7ffb\u9875\u5feb\u901f\u9605\u8bfb\u534f\u8bae\u6761\u6b3e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"618\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121748-680a2bec779d4.png\" width=\"1106\" \/><\/p>\n<p>\u8f93\u5165yes\u540c\u610f\u534f\u8bae\u6761\u6b3e<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"617\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121748-680a2bece56e5.png\" width=\"1111\" \/><\/p>\n<p>\u7ee7\u7eed\u518d\u6309\u56de\u8f66\u5065Enter\u786e\u8ba4\u5b89\u88c5\u5230\/root\/anaconda3&#xff0c;\u5982\u679c\u4f60\u60f3\u5b89\u88c5\u5230\u5176\u5b83\u76ee\u5f55\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165&#xff08;\u4e0d\u8fc7\u4e00\u822c\u60c5\u51b5\u4e0b\u4e0d\u9700\u8981\u53bb\u6539&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"614\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121749-680a2bed576ba.png\" width=\"1107\" \/><\/p>\n<p>\u786e\u8ba4\u542f\u52a8\u65f6\u66f4\u65b0\u548c\u521d\u59cb\u5316<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"619\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121749-680a2bedbb1fb.png\" width=\"1103\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"341\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121750-680a2bee29349.png\" width=\"726\" \/><\/p>\n<p>\u6ce8\u610f&#xff0c;\u6b64\u65f6\u8fd0\u884cconda -V\u63d0\u793a\u6ca1\u6709conda\u547d\u4ee4&#xff0c;\u4f60\u53ea\u9700\u8981\u5173\u95edcmd\u7a97\u53e3\u518d\u8fdb\u5165\u5230unbuntu\u5373\u53ef&#xff0c;\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fwindows11&#xff0c;\u8fd9\u91cc\u4e5f\u4f1a\u6709\u5feb\u6377\u8fdb\u5165unbuntu\u7684\u5165\u53e3<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"368\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121750-680a2bee59375.png\" width=\"450\" \/><\/p>\n<p>\u518d\u6b21\u9a8c\u8bc1conda -V&#xff0c;\u4f1a\u8f93\u51fa\u7248\u672c\u53f7<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"104\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121750-680a2bee8ac2a.png\" width=\"622\" \/><\/p>\n<p>\u81f3\u6b64&#xff0c;anaconda\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<h3 style=\"background-color:transparent\">\u4e09\u3001\u5b89\u88c5\u663e\u5361\u9a71\u52a8<\/h3>\n<p>\u6ce8\u610f&#xff0c;\u4e0d\u9700\u8981\u518d\u518dwsl-ubuntu\u4e0a\u5b89\u88c5\u663e\u5361\u9a71\u52a8&#xff0c;\u53ea\u9700\u8981\u4f60\u7684windows\u4e0a\u5b89\u88c5\u597d\u5c31\u884c&#xff0c;\u76f4\u63a5\u8fd0\u884cnvidia-smi\u5373\u53ef\u9a8c\u8bc1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"486\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121750-680a2beeb1b2e.png\" width=\"1099\" \/><\/p>\n<\/p>\n<p>\u7531\u4e8e\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u548c\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u90fd\u5931\u8d25\u4e86&#xff0c;\u82e5\u8981\u5feb\u901f\u642d\u5efa\u5417&#xff0c;\u53ef\u76f4\u63a5\u8df3\u8f6c\u81f3\u7b2c\u516d\u7ae0\u8282&#xff0c;\u4f60\u53ea\u9700\u8981\u6ce8\u610f\u6dfb\u52a0conda\u6e05\u534e\u6e90\u5c31\u884c\u4e86\u3002<\/p>\n<h3 style=\"background-color:transparent\">\u56db\u3001\u3010\u5931\u8d25\u3011\u7b2c\u4e00\u6b21\u5c1d\u8bd5&#xff1a;\u521b\u5efaConda&#043;TensorFlow&#043;GPU\u73af\u5883<\/h3>\n<h4 style=\"background-color:transparent\">1. \u521b\u5efa\u65b0\u7684conda\u73af\u5883<\/h4>\n<p>conda\u73af\u5883\u540d\u79f0\u4e3at1&#xff0c;python\u7248\u672c\u4e3a3.10<\/p>\n<p>conda create -n t1 python&#061;3.10 <\/p>\n<h4><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"529\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121751-680a2bef1164b.png\" width=\"780\" \/><\/h4>\n<h4 style=\"background-color:transparent\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"631\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121751-680a2bef58be6.png\" width=\"1005\" \/>2. \u8fdb\u5165\u521a\u521b\u5efaconda\u73af\u5883&#xff1a;t1<\/h4>\n<p>conda activate t1 <\/p>\n<h4 style=\"background-color:transparent\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"58\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121751-680a2befa06a3.png\" width=\"582\" \/><\/h4>\n<h4 style=\"background-color:transparent\">3. \u5b89\u88c5cudatoolkit\u548ccudnn<\/h4>\n<p>\u5b89\u88c5cudatoolkit\u768411.2\u7248\u672c\u548ccudnn\u76848.1\u7248\u672c<\/p>\n<p>conda install cudatoolkit&#061;11.2 cudnn&#061;8.1 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"456\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121751-680a2befc6d63.png\" width=\"798\" \/><\/p>\n<p>\u8bbe\u7f6econda\u6e05\u534e\u6e90<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"236\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121752-680a2bf0119fb.png\" width=\"1040\" \/><\/p>\n<p>\u518d\u6765&#xff0c;\u53ef\u4ee5\u4e0b\u8f7d\u4e86<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"659\" src=\"2025-04-24qncy04dkeuf.png\" width=\"1427\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"432\" src=\"2025-04-24sxibfstfn5x.png\" width=\"1176\" \/><\/p>\n<h4>4.\u5b89\u88c5tensorflow<\/h4>\n<p>\u00a0\u5b89\u88c5tensorflow\u76842.10.0\u7248\u672c&#xff08;\u56e0\u4e3apip\u6e90\u662f\u5355\u72ec\u63a7\u5236\u7684&#xff0c;\u6240\u4ee5\u8fd9\u91cc\u4e34\u65f6\u6307\u5b9a&#xff09;<\/p>\n<p>pip install tensorflow&#061;&#061;2.10.0 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple <\/p>\n<h4>5. \u5b89\u88c5tensorflow-gpu\u76842.10.0\u7248\u672c<\/h4>\n<p>pip install tensorflow-gpu&#061;&#061;2.10.0 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple <\/p>\n<h4>6 \u964d\u4f4enumpy\u7684\u7248\u672c\u52301.22.4<\/h4>\n<p>pip install numpy&#061;&#061;1.22.4 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple <\/p>\n<h4 style=\"background-color:transparent\">7. \u4f7f\u7528GPU\u8bad\u7ec3<\/h4>\n<h5>1.\u514b\u9686cnn-hello<\/h5>\n<p>git clone https:\/\/gitee.com\/fengyefly\/cnn-hello<br \/>\ncd cnn-hello\/ <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"280\" src=\"2025-04-24afdkwmjyswk.png\" width=\"834\" \/><\/p>\n<h5 style=\"background-color:transparent\">2.\u8fd0\u884ccnn-hello-train.py<\/h5>\n<p>python cnn-hello-train.py <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"863\" src=\"2025-04-24wpqb2ymxeys.png\" width=\"1187\" \/><\/p>\n<p>\u53d1\u73b0\u672a\u8c03\u7528GPU&#xff01;\u7531\u4e8e\u4ee5\u4e0a\u662f\u518dwindows\u8dd1\u901a\u7684&#xff0c;\u518dubuntu\u4e0b\u6ca1\u5fc5\u8981\u6309\u8fd9\u4e2a\u7248\u672c&#xff0c;\u4e0b\u9762\u5c1d\u8bd5\u91cd\u65b0\u521b\u5efa\u4e00\u4e2aconda\u73af\u5883&#xff0c;\u7136\u540e\u7528\u6bd4\u8f83\u65b0\u7684\u7248\u672c\u3002&#xff08;\u539f\u56e0\u4e5f\u53ef\u4ee5\u770b\u770b\u4e0b\u9762\u8fd9\u4e2a\u5b98\u65b9\u8bf4\u660e&#xff09;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"404\" src=\"2025-04-244h4krbhzaby.png\" width=\"932\" \/><\/p>\n<p>\u9000\u51faconda t1\u73af\u5883<\/p>\n<p>conda deactivate <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"37\" src=\"2025-04-24djtdpy4dvgj.png\" width=\"516\" \/><\/p>\n<h3 style=\"background-color:transparent\">\u4e94\u3001\u3010\u5931\u8d25\u3011\u7b2c\u4e8c\u6b21\u5c1d\u8bd5&#xff1a;\u521b\u5efaConda&#043;TensorFlow&#043;GPU\u73af\u5883&#xff08;python 12&#xff09;<\/h3>\n<h4 style=\"background-color:transparent\">\u00a01. \u521b\u5efa\u65b0\u7684conda\u73af\u5883<\/h4>\n<p>conda\u73af\u5883\u540d\u79f0\u4e3at2&#xff0c;\u8fd9\u6b21\u6211\u4eec\u4f7f\u7528python\u7248\u672c\u4e3a3.12<\/p>\n<p>conda create -n t2 python&#061;3.12 <\/p>\n<h4><\/h4>\n<h4><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"352\" src=\"2025-04-24bqnwdxmu1zy.png\" width=\"784\" \/><\/h4>\n<h4>2. \u8fdb\u5165\u521a\u521b\u5efaconda\u73af\u5883&#xff1a;t2<\/h4>\n<p>conda activate t2 <\/p>\n<h4 style=\"background-color:transparent\">3. \u5b89\u88c5cudatoolkit\u548ccudnn<\/h4>\n<p>conda install cudatoolkit&#061;12.5<br \/>\nconda install cudnn&#061;9.3<\/p>\n<h4>4.\u5b89\u88c5tensorflow<\/h4>\n<\/p>\n<p>pip install tensorflow&#061;&#061;2.19.0 -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple <\/p>\n<h4 style=\"background-color:transparent\">5. \u5c1d\u8bd5\u4f7f\u7528GPU\u8bad\u7ec3<\/h4>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"728\" src=\"2025-04-24ywhccoxmoci.png\" width=\"1197\" \/><\/p>\n<h3 style=\"background-color:transparent\">\u516d\u3001\u3010\u6210\u529f\u3011\u7b2c\u4e09\u6b21\u5c1d\u8bd5&#xff1a;\u521b\u5efaConda&#043;TensorFlow&#043;GPU\u73af\u5883&#xff08;python 12&#xff09;<\/h3>\n<p>\u53c2\u9605\u4e86\u5b98\u7f51\u7684\u6559\u7a0b&#xff0c;\u6539\u8fdb\u5b89\u88c5\u65b9\u6848\u3002<\/p>\n<h4>1.\u521b\u5efa\u65b0\u7684conda\u73af\u5883<\/h4>\n<p>conda create -n t4 python&#061;3.12 <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"508\" src=\"2025-04-24442mj0y1kzp.png\" width=\"1052\" \/><\/p>\n<h4 style=\"background-color:transparent\">2.\u5b89\u88c5tensorflow[and-cuda]<\/h4>\n<p>\u6ce8\u610f&#xff1a;\u6b64\u5904\u7684\u547d\u4ee4\u4e0d\u4ec5\u4ec5\u662ftensorflow&#xff0c;\u800c\u591a\u4e86\u4e00\u4e2a[and-cuda]&#xff0c;\u610f\u5473\u7740\u5b83\u4f1a\u5e2e\u6211\u4eec\u628acudatoolkit\u548ccudnn\u81ea\u52a8\u88c5\u597d\u3002<\/p>\n<p>pip install tensorflow[and-cuda] <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"789\" src=\"2025-04-24gdehoqke24n.png\" width=\"1201\" \/><\/p>\n<h4 style=\"background-color:transparent\">\u00a03.\u9a8c\u8bc1GPU<\/h4>\n<p>\u6267\u884c\u8be5\u547d\u4ee4&#xff0c;\u53ef\u4ee5\u770b\u5230\u6210\u529f\u52a0\u8f7d\u5230GPU\u3002<\/p>\n<p>python3 -c &#034;import tensorflow as tf; print(tf.config.list_physical_devices(&#039;GPU&#039;))&#034; <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"459\" src=\"2025-04-24egcwbty0ykr.png\" width=\"1194\" \/><\/p>\n<\/p>\n<h3 style=\"background-color:transparent\">\u00a0\u4e03. \u4f7f\u7528GPU\u8bad\u7ec3\u901f\u5ea6\u4f53\u9a8c<\/h3>\n<h4 style=\"background-color:transparent\">1.\u514b\u9686cnn-hello<\/h4>\n<p>git clone https:\/\/gitee.com\/fengyefly\/cnn-hello<br \/>\ncd cnn-hello\/ <\/p>\n<h4>2.\u8fd0\u884ccnn-hello-train.py<\/h4>\n<p>python cnn-hello-train.py <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"890\" src=\"2025-04-24guanxtsalbe.png\" width=\"1210\" \/>\u00a0\u7ecf\u9a8c\u8bc1&#xff0c;\u8bad\u7ec3\u7528\u65f6\u7ea613s&#xff0c;\u548c\u6211\u5728windows\u4e0a\u76f4\u63a5\u7528conda\u5b89\u88c5\u7684\u73af\u5883\u4e0b&#xff0c;\u7528\u65f6\u975e\u5e38\u63a5\u8fd1&#xff01;<\/p>\n<\/p>\n<p>\u81f3\u6b64&#xff0c;\u5df2\u7ecf\u5b8c\u6210\u5728Windows11\u4e0a\u642d\u5efaWSL2&#043;Ubuntu22.04&#043;Tensorflow&#043;GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883\u3002\u611f\u8c22\u9605\u8bfb&#xff01;\u771f\u6750\u5b9e\u6599\u7684\u5b9e\u8df5\u5206\u4eab&#xff0c;\u522b\u5fd8\u8bb0\u7ed9\u4e2a\u70b9\u8d5e\u54e6&#x1f44d;\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e46\u6b21\uff0c\u6536\u85cf29\u6b21\u3002\u6ce8\u610f\uff0c\u6b64\u65f6\u8fd0\u884cconda -V\u63d0\u793a\u6ca1\u6709conda\u547d\u4ee4\uff0c\u4f60\u53ea\u9700\u8981\u5173\u95edcmd\u7a97\u53e3\u518d\u8fdb\u5165\u5230unbuntu\u5373\u53ef\uff0c\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fwindows11\uff0c\u8fd9\u91cc\u4e5f\u4f1a\u6709\u5feb\u6377\u8fdb\u5165unbuntu\u7684\u5165\u53e3\u3002\u7531\u4e8e\u4ee5\u4e0a\u662f\u518dwindows\u8dd1\u901a\u7684\uff0c\u518dubuntu\u4e0b\u6ca1\u5fc5\u8981\u6309\u8fd9\u4e2a\u7248\u672c\uff0c\u4e0b\u9762\u5c1d\u8bd5\u91cd\u65b0\u521b\u5efa\u4e00\u4e2aconda\u73af\u5883\uff0c\u7136\u540e\u7528\u6bd4\u8f83\u65b0\u7684\u7248\u672c\u3002\u7531\u4e8e\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u548c\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u90fd\u5931\u8d25\u4e86\uff0c\u82e5\u8981\u5feb\u901f\u642d\u5efa\u5417\uff0c\u53ef\u76f4\u63a5\u8df3\u8f6c\u81f3\u7b2c\u516d\u7ae0\u8282\uff0c\u4f60\u53ea\u9700\u8981\u6ce8\u610f\u6dfb\u52a0conda\u6e05\u534e\u6e90\u5c31\u884c\u4e86\u3002\u7ecf\u9a8c\u8bc1\uff0c\u8bad\u7ec3\u7528\u65f6\u7ea613s\uff0c\u548c\u6211\u5728windows\u4e0a\u76f4\u63a5\u7528conda\u5b89\u88c5\u7684\u73af\u5883\u4e0b\uff0c\u7528\u65f6\u975e\u5e38\u63a5\u8fd1\uff01<\/p>\n","protected":false},"author":2,"featured_media":32561,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2648,2649,103,149,401,207],"topic":[],"class_list":["post-32581","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ai","tag-gpu","tag-ubuntu","tag-windows","tag-wsl","tag-207"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883 - \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\/32581.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e46\u6b21\uff0c\u6536\u85cf29\u6b21\u3002\u6ce8\u610f\uff0c\u6b64\u65f6\u8fd0\u884cconda -V\u63d0\u793a\u6ca1\u6709conda\u547d\u4ee4\uff0c\u4f60\u53ea\u9700\u8981\u5173\u95edcmd\u7a97\u53e3\u518d\u8fdb\u5165\u5230unbuntu\u5373\u53ef\uff0c\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fwindows11\uff0c\u8fd9\u91cc\u4e5f\u4f1a\u6709\u5feb\u6377\u8fdb\u5165unbuntu\u7684\u5165\u53e3\u3002\u7531\u4e8e\u4ee5\u4e0a\u662f\u518dwindows\u8dd1\u901a\u7684\uff0c\u518dubuntu\u4e0b\u6ca1\u5fc5\u8981\u6309\u8fd9\u4e2a\u7248\u672c\uff0c\u4e0b\u9762\u5c1d\u8bd5\u91cd\u65b0\u521b\u5efa\u4e00\u4e2aconda\u73af\u5883\uff0c\u7136\u540e\u7528\u6bd4\u8f83\u65b0\u7684\u7248\u672c\u3002\u7531\u4e8e\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u548c\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u90fd\u5931\u8d25\u4e86\uff0c\u82e5\u8981\u5feb\u901f\u642d\u5efa\u5417\uff0c\u53ef\u76f4\u63a5\u8df3\u8f6c\u81f3\u7b2c\u516d\u7ae0\u8282\uff0c\u4f60\u53ea\u9700\u8981\u6ce8\u610f\u6dfb\u52a0conda\u6e05\u534e\u6e90\u5c31\u884c\u4e86\u3002\u7ecf\u9a8c\u8bc1\uff0c\u8bad\u7ec3\u7528\u65f6\u7ea613s\uff0c\u548c\u6211\u5728windows\u4e0a\u76f4\u63a5\u7528conda\u5b89\u88c5\u7684\u73af\u5883\u4e0b\uff0c\u7528\u65f6\u975e\u5e38\u63a5\u8fd1\uff01\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/32581.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-24T12:17:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121745-680a2be9c6e7a.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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32581.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/32581.html\",\"name\":\"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-24T12:17:53+00:00\",\"dateModified\":\"2025-04-24T12:17:53+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/32581.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/32581.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/32581.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883\"}]},{\"@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":"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883 - \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\/32581.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.3k\u6b21\uff0c\u70b9\u8d5e46\u6b21\uff0c\u6536\u85cf29\u6b21\u3002\u6ce8\u610f\uff0c\u6b64\u65f6\u8fd0\u884cconda -V\u63d0\u793a\u6ca1\u6709conda\u547d\u4ee4\uff0c\u4f60\u53ea\u9700\u8981\u5173\u95edcmd\u7a97\u53e3\u518d\u8fdb\u5165\u5230unbuntu\u5373\u53ef\uff0c\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fwindows11\uff0c\u8fd9\u91cc\u4e5f\u4f1a\u6709\u5feb\u6377\u8fdb\u5165unbuntu\u7684\u5165\u53e3\u3002\u7531\u4e8e\u4ee5\u4e0a\u662f\u518dwindows\u8dd1\u901a\u7684\uff0c\u518dubuntu\u4e0b\u6ca1\u5fc5\u8981\u6309\u8fd9\u4e2a\u7248\u672c\uff0c\u4e0b\u9762\u5c1d\u8bd5\u91cd\u65b0\u521b\u5efa\u4e00\u4e2aconda\u73af\u5883\uff0c\u7136\u540e\u7528\u6bd4\u8f83\u65b0\u7684\u7248\u672c\u3002\u7531\u4e8e\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u548c\u7b2c\u4e8c\u6b21\u5c1d\u8bd5\u90fd\u5931\u8d25\u4e86\uff0c\u82e5\u8981\u5feb\u901f\u642d\u5efa\u5417\uff0c\u53ef\u76f4\u63a5\u8df3\u8f6c\u81f3\u7b2c\u516d\u7ae0\u8282\uff0c\u4f60\u53ea\u9700\u8981\u6ce8\u610f\u6dfb\u52a0conda\u6e05\u534e\u6e90\u5c31\u884c\u4e86\u3002\u7ecf\u9a8c\u8bc1\uff0c\u8bad\u7ec3\u7528\u65f6\u7ea613s\uff0c\u548c\u6211\u5728windows\u4e0a\u76f4\u63a5\u7528conda\u5b89\u88c5\u7684\u73af\u5883\u4e0b\uff0c\u7528\u65f6\u975e\u5e38\u63a5\u8fd1\uff01","og_url":"https:\/\/www.wsisp.com\/helps\/32581.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-24T12:17:53+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250424121745-680a2be9c6e7a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/32581.html","url":"https:\/\/www.wsisp.com\/helps\/32581.html","name":"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-24T12:17:53+00:00","dateModified":"2025-04-24T12:17:53+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/32581.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/32581.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/32581.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010AI\u8bad\u7ec3\u73af\u5883\u642d\u5efa\u3011\u5728Windows11\u4e0a\u642d\u5efaWSL2+Ubuntu22.04+Tensorflow+GPU\u673a\u5668\u5b66\u4e60\u8bad\u7ec3\u73af\u5883"}]},{"@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\/32581","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=32581"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/32581\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/32561"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=32581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=32581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=32581"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=32581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}