{"id":23981,"date":"2025-04-19T09:06:21","date_gmt":"2025-04-19T01:06:21","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/23981.html"},"modified":"2025-04-19T09:06:21","modified_gmt":"2025-04-19T01:06:21","slug":"%e6%b7%b1%e5%ba%a6%e5%ad%a6%e4%b9%a0%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae-1-5-%e7%8e%af%e5%a2%83%e6%90%ad%e5%bb%ba%e9%99%84%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/23981.html","title":{"rendered":"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55\u00a0 \u00a0 \u00a0 \u00a0 \u00a01.1 \u7cfb\u7edf\u73af\u5883\u642d\u5efa<\/p>\n<p style=\"margin-left:40px\">\u00a0 \u00a0 \u00a0 \u00a0\u5236\u4f5c\u7cfb\u7edf\u76d8\u00a0&amp;\u00a0ubuntu20\u7cfb\u7edf\u5b89\u88c5 &amp;\u673a\u68b0\u76d8\u6302\u8f7d\u00a0&amp;\u00a0\u7f51\u7edc\u914d\u7f6e &amp;RAID\u7b80\u4ecb<\/p>\n<p style=\"margin-left:40px\">1.2 ubuntu\u5e38\u89c1\u57fa\u7840\u914d\u7f6e<\/p>\n<p style=\"margin-left:40px\">\u00a0 \u00a0 \u00a0 \u00a0\u8f6f\u4ef6\u7684\u914d\u7f6e&amp; \u57fa\u7840\u8f6f\u4ef6\u5b89\u88c5 &amp;\u641c\u72d7\u8f93\u5165\u6cd5\u914d\u7f6e&amp;\u8fdc\u7a0bSSH\u76f8\u5173&amp;\u7cfb\u7edf\u9ed8\u8ba4\u5185\u6838&amp;\u6570\u636e\u95ed\u73af\u8bbe\u5907<\/p>\n<p style=\"margin-left:40px\">1.3 docker\u57fa\u7840\u914d\u7f6e<\/p>\n<p style=\"margin-left:40px\">\u00a0 \u00a0 \u00a0 docker\u5b89\u88c5&amp;\u955c\u50cf\u62c9\u53d6\u52a0\u901f&amp;\u53bb\u9664sudo\u9650\u5236&amp;\u4fee\u6539\u955c\u50cf\u5b58\u50a8\u4f4d\u7f6e&amp;docker compose&amp;docker \u547d\u4ee4\u6c47\u603b1.4 \u6df1\u5ea6\u5b66\u4e60\u955c\u50cf<\/p>\n<p style=\"margin-left:40px\">\u00a0 \u00a0 \u00a0 \u00a0GPU\u9a71\u52a8\u5b89\u88c5&amp;nvidia docker&amp;\u6df1\u5ea6\u5b66\u4e60\u955c\u50cf\u67e5\u627e\u62c9\u53d6&amp;\u6df1\u5ea6\u5b66\u4e60\u5bb9\u5668\u521b\u5efa&amp;\u5bb9\u5668\u5bfc\u51fa\u4e3a\u955c\u50cf<\/p>\n<p style=\"margin-left:40px\">1.5 \u73af\u5883\u642d\u5efa\u9644\u5f55<\/p>\n<p id=\"1.%20anconda%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:80px\">1. anconda\u5b89\u88c5<\/p>\n<p id=\"2.%C2%A0conda%E7%8E%AF%E5%A2%83%E5%88%9B%E5%BB%BA-toc\" style=\"margin-left:80px\">2.\u00a0conda\u73af\u5883\u521b\u5efa<\/p>\n<p id=\"3.%C2%A0pytorch-gpu%E5%AE%89%E8%A3%85-toc\" style=\"margin-left:80px\">3.\u00a0pytorch-gpu\u5b89\u88c5<\/p>\n<p id=\"4.%20%E5%AE%B9%E5%99%A8%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE%E9%94%99%E8%AF%AF%E9%9B%86-toc\" style=\"margin-left:80px\">4. \u5bb9\u5668\u57fa\u7840\u914d\u7f6e\u9519\u8bef\u96c6<\/p>\n<p id=\"5.%20cuda%E5%AE%89%E8%A3%85%C2%A0%20(%E4%B8%80%E8%88%AC%E9%95%9C%E5%83%8F%E4%B8%AD%E8%87%AA%E5%B8%A6%EF%BC%89-toc\" style=\"margin-left:80px\">5. cuda\u5b89\u88c5\u00a0 (\u4e00\u822c\u955c\u50cf\u4e2d\u81ea\u5e26&#xff09;<\/p>\n<p id=\"6.%20cudnn%E5%AE%89%E8%A3%85%20(%E4%B8%80%E8%88%AC%E9%95%9C%E5%83%8F%E4%B8%AD%E8%87%AA%E5%B8%A6%EF%BC%89-toc\" style=\"margin-left:80px\">6. cudnn\u5b89\u88c5 (\u4e00\u822c\u955c\u50cf\u4e2d\u81ea\u5e26&#xff09;<\/p>\n<p style=\"margin-left:40px\">1.6\u00a0 \u6570\u636e\u95ed\u73af\u642d\u5efa&amp;docker\u8865\u5145<\/p>\n<p style=\"margin-left:40px\">\u00a0 \u00a0 \u00a0 \u00a0 \u673a\u68b0\u76d8\u70ed\u63d2\u62d4&amp;NFS\u8fdc\u7a0b\u6302\u8f7d&amp;\u6570\u636e\u95ed\u73af\u7cfb\u7edf&amp;docker\u7b80\u4ecb&amp;docker\u57fa\u672c\u6982\u5ff5&amp;docker\u6570\u636e\u5377<\/p>\n<p style=\"margin-left:40px\">1.7 linux\u57fa\u7840&amp;vscode<\/p>\n<p style=\"margin-left:40px\">\u00a0 \u00a0 \u00a0 linux\u5e38\u89c1\u57fa\u7840\u547d\u4ee4&amp;vscode\u7f16\u8f91\u5668\u642d\u5efa&amp;vscode\u865a\u62df\u73af\u5883\u4f7f\u7528&amp;vscode\u7684debug\u529f\u80fd&amp;vscode\u8fdc\u7a0b\u94fe\u63a5\u670d\u52a1\u5668<\/p>\n<p style=\"margin-left:80px\">\n<hr id=\"hr-toc\" \/>\n<h3 id=\"1.5%20%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA%E9%99%84%E5%BD%95\">1.5 \u73af\u5883\u642d\u5efa\u9644\u5f55<\/h3>\n<h4 id=\"1.%20anconda%E5%AE%89%E8%A3%85\" style=\"margin-left:0px\">1. anconda\u5b89\u88c5<\/h4>\n<ul>\n<li>python\u7248\u672c\u5bf9\u5e94\u67e5\u770b&#xff1a;conda\u4e0ePython\u7248\u672c\u5bf9\u5e94\u5173\u7cfb<\/li>\n<li>conda\u538b\u7f29\u5305\u4e0b\u8f7d&#xff1a;conda\u4e0b\u8f7d\u6e05\u534e\u6e90<\/li>\n<\/ul>\n<p>\u6ce8\u91ca&#xff1a;<span style=\"color:#0d0016\">Uname -a\u00a0 \u67e5\u770b\u7cfb\u7edf\u7248\u672c\u00a0\u00a0\u00a0 \u5bf9\u5e94\u7248\u672c\u7684conda&#xff0c;\u4e00\u822c\u4e3ax86_64<\/span><\/p>\n<ul>\n<li>\u5b89\u88c5\u5bf9\u5e94\u8f6f\u4ef6&#xff1a;bash Anaconda3-***.sh &#8211;&gt;\u00a0\u4e00\u76f4\u6309enter\u5230yes &#8211;&gt; enter\u9ed8\u8ba4\u5b89\u88c5\u8def\u5f84 &#8211;&gt; no \u62d2\u7edd\u81ea\u52a8\u914d\u7f6e\u73af\u5883<\/li>\n<li>\u914d\u7f6e\u73af\u5883&#xff1a;&#xff08;\u5bb9\u5668\u4e2d&#xff09;\u6253\u5f00\u914d\u7f6e\u6587\u4ef6(sudo vim ~\/.bashrc) &#8211;&gt;\u6dfb\u52a0conda\u8def\u5f84\u4fe1\u606f &#xff08;export PATH&#061;&#034;\/root\/anaconda3\/bin:$PATH&#034;&#xff09;&#8211;&gt; \u521d\u59cb\u5316\u914d\u7f6e\u6587\u4ef6&#xff08;source ~\/.bashrc&#xff09;&#8211;&gt;\u521d\u59cb\u5316conda\u73af\u5883(conda init) &#8211;&gt; \u9000\u51fa\u5bb9\u5668\u91cd\u65b0\u8fdb\u5165<\/li>\n<li>\u914d\u7f6e\u73af\u5883&#xff1a;&#xff08;ubuntu20&#xff09;\u6253\u5f00\u914d\u7f6e\u6587\u4ef6(sudo vim ~\/.bashrc) &#8211;&gt; \u8f93\u5165\u4e0b\u5217\u4e24\u884c\u547d\u4ee4\u4fdd\u5b58\u9000\u51fa\u00e8\u521d\u59cb\u5316\u73af\u5883\u53d8\u91cf<span style=\"color:#ff0000\">&#xff08;<\/span><span style=\"color:#ff0000\">source ~\/.bashrc&#xff09;<\/span>&#8211;&gt; python3\u5bf9\u5e94linux\u4e2d\u81ea\u5e26python&#xff1b;python\u5bf9\u5e94conda\u4e2d\u7684python<\/li>\n<\/ul>\n<p>alias python3&#061;&#034;\/usr\/bin\/python3.10&#034;            #\u7cfb\u7edf\u81ea\u5e26\u7684python&#xff0c;\u522b\u540d3.10<br \/>\nexport PATH&#061;&#034;\/home\/user\/anaconda3\/bin:$PATH&#034;   #conda\u4e2d\u7684python<\/p>\n<p>\u8bf4\u660e&#xff1a;<span style=\"color:#0d0016\">which python \u53ef\u4ee5\u67e5\u770bpython\u8def\u5f84&#xff0c;\u8f93\u5165python\u8fdb\u5165conda\u7684python\u73af\u5883&#xff0c;\u8f93\u5165python3\u8fdb\u5165linux\u81ea\u5e26python<\/span><\/p>\n<ul>\n<li style=\"margin-left:10pt\">\u66f4\u6362\u6e90&#xff1a;\u6253\u5f00\u914d\u7f6e\u6587\u4ef6&#xff08;vim ~\/.condarc&#xff09;&#8211;&gt; \u5199\u5165\u4e0b\u5217\u5185\u5bb9\u00e8\u4fdd\u5b58\u9000\u51fa&#xff08;crtl &#043;x &#8211;&gt; y&#xff09;&#8211;&gt; \u67e5\u770b\u662f\u5426\u6210\u529f&#xff08;conda config \u2013show channels&#xff09;<\/li>\n<\/ul>\n<p>channels:<br \/>\n  &#8211; https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/free\/<br \/>\n  &#8211; https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/pkgs\/main\/<br \/>\n  &#8211; https:\/\/mirrors.tuna.tsinghua.edu.cn\/anaconda\/cloud\/pytorch\/<br \/>\nshow_channel_urls: true<\/p>\n<ul>\n<li style=\"margin-left:10pt\">\u5176\u4ed6\u76f8\u5173\u547d\u4ee4\u8865\u5145<\/li>\n<\/ul>\n<p>\u6062\u590d\u9ed8\u8ba4\u955c\u50cf&#xff1a;conda config &#8211;remove-key channels<br \/>\n\u5220\u9664\u5355\u4e2a\u955c\u50cf&#xff1a;conda config &#8211;remove channels your_url<br \/>\n\u6dfb\u52a0\u955c\u50cf&#xff1a;conda config &#8211;add channels \u955c\u50cf\u5730\u5740<\/p>\n<h4 id=\"2.%C2%A0conda%E7%8E%AF%E5%A2%83%E5%88%9B%E5%BB%BA\" style=\"text-align:justify\">2.\u00a0conda\u73af\u5883\u521b\u5efa<\/h4>\n<p>#\u521b\u5efa\u865a\u62df\u73af\u5883&#xff1a; conda create -n Deeplearning python&#061;3.9       Deeplearning\u4e3a\u73af\u5883\u540d\u79f0<br \/>\n#\u57fa\u4e8e\u539f\u6709\u73af\u5883\u521b\u5efa\u65b0\u73af\u5883&#xff1a; conda create &#8211;name new_env &#8211;clone old_env<br \/>\n#\u67e5\u770b\u5df2\u6709\u865a\u62df\u73af\u5883&#xff1a;conda env list<br \/>\n#\u5220\u9664\u5df2\u6709\u73af\u5883&#xff1a;conda env remove \u2013name \u73af\u5883\u540d\u79f0<br \/>\n# \u5173\u95ed\u865a\u62df\u73af\u5883&#xff1a;conda deactivate<br \/>\n#\u6fc0\u6d3b\u865a\u62df\u73af\u5883&#xff1a;conda activate Deeplearning    &#xff08;\u51fa\u9519\u65f6source activate Deeplearning&#xff09;<br \/>\n# \u5b89\u88c5open3d\/opencv: \u5728\u6fc0\u6d3b\u7684\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5<br \/>\npip install open3d opencv-python  -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<br \/>\n#\u4e0b\u8f7d\u6307\u5b9a\u7684\u7248\u672c\u5e93\u6587\u4ef6&#xff1a; pip install opencv-python&#061;&#061;3.4.10.35 <\/p>\n<p>\u6ce8\u91ca&#xff1a;<span style=\"color:#0d0016\">\u4f7f\u7528conda\u5b89\u88c5\u62a5\u9519&#xff0c;python &#8211;&gt; import open3d \/cv2 &#8211;&gt;\u65e0\u62a5\u9519\u5373\u53ef&#xff0c;\u4e00\u822c\u6765\u8bf4\u4f1a\u5728\u865a\u62df\u73af\u5883\u4e2d\u5b89\u88c5\u8fd9\u4e24\u4e2a\u5e93&#xff0c;\u907f\u514d\u56e0\u73af\u5883\u95ee\u9898\u5b89\u88c5\u51fa\u9519<\/span><\/p>\n<h4 id=\"3.%C2%A0pytorch-gpu%E5%AE%89%E8%A3%85\">3.\u00a0pytorch-gpu\u5b89\u88c5<\/h4>\n<ul>\n<li>\u4f7f\u7528pip\u8fdb\u884c\u5b89\u88c5&#xff0c;\u4e0d\u63a8\u8350\u4f7f\u7528conda&#xff0c;\u5177\u4f53\u547d\u4ee4<span style=\"color:#0d0016\">\u53ef\u80fd\u4f1a\u8c03\u6574&#xff0c;\u5177\u4f53\u770bpytorch\u5b98\u7f51\u4fe1\u606f<\/span><\/li>\n<\/ul>\n<p># \u8bf4\u660e&#xff1a;\u9700\u8981\u52a0\u6e05\u534e\u6e90\u5b89\u88c5&#xff0c;\u5426\u5219\u7f51\u7edc\u8fde\u63a5\u5931\u8d25&#xff0c;\u65e0\u6cd5\u5b89\u88c5<br \/>\npip install torch torchvision torchaudio   -i   https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<ul>\n<li style=\"text-align:justify\">\u9a8c\u8bc1\u662f\u5426\u5b89\u88c5\u6210\u529f&#xff1a;\u6fc0\u6d3b\u865a\u62df\u73af\u5883 &#8211;&gt;\u00a0python &#8211;&gt;import torch &#8211;&gt; torch.cuda.is_available (\u8fd4\u56deTrue\u5219\u8868\u793agpu\u7248\u672c\u5b89\u88c5\u6210\u529f)<\/li>\n<li style=\"text-align:justify\">\u67e5\u770bpytorch\u7248\u672c&#xff1a; torch.__version__<\/li>\n<\/ul>\n<h4 id=\"4.%20%E5%AE%B9%E5%99%A8%E5%9F%BA%E7%A1%80%E9%85%8D%E7%BD%AE%E9%94%99%E8%AF%AF%E9%9B%86\">4. \u5bb9\u5668\u57fa\u7840\u914d\u7f6e\u9519\u8bef\u96c6<\/h4>\n<ul>\n<li style=\"text-align:justify\">\u5b89\u88c5\u51fa\u9519&#xff0c;\u66f4\u65b0\u6e90\u518d\u5b89\u88c5&#xff1a;apt-get update<\/li>\n<\/ul>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"74\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c0e06b.png\" width=\"392\" \/><\/p>\n<ul>\n<li style=\"text-align:justify\">Open3d-\u95ee\u98981&#xff1a;File &#034;\/root\/anaconda3\/lib\/python3.10\/site-packages\/scipy\/spatial\/_kdtree.py&#034;, line 4, in &lt;module&gt;\u00a0\u00a0\u00a0\u00a0 from ._ckdtree import cKDTree, cKDTreeNode ImportError: \/lib\/x86_64-linux-gnu\/libstdc&#043;&#043;.so.6: version &#096;GLIBCXX_3.4.29&#039; not found (required by \/root\/anaconda3\/lib\/python3.10\/site-packages\/scipy\/spatial\/_ckdtree.cpython-310-x86_64-linux-gnu.so)<\/li>\n<\/ul>\n<p style=\"text-align:justify\">\u53c2\u8003\u535a\u6587&#xff1a;<\/p>\n<p style=\"text-align:justify\">\u5982\u4f55\u89e3\u51b3version &#096;GLIBCXX_3.4.29\u2018 not found\u7684\u95ee\u9898_glibcxx not found-CSDN\u535a\u5ba2<\/p>\n<ul>\n<li>Open3d-\u95ee\u98982&#xff1a;ImportError: cannot import name &#039;url_quote&#039; from &#039;werkzeug.urls&#039; (\/root\/anaconda3\/lib\/python3.10\/site-packages\/werkzeug\/urls.py)<\/li>\n<\/ul>\n<p>from werkzeug.urls import quote\u00a0 # \u4f7f\u7528 quote \u800c\u4e0d\u662f url_quote <\/p>\n<ul>\n<li style=\"text-align:justify\">\u5b89\u88c5\u5305\u51b2\u7a81\u65f6&#xff0c;\u9700\u8981root\u6743\u9650\u00a0 &#xff1a; pip install \u2013user \u5b89\u88c5\u5305\u540d\u79f0<\/li>\n<li style=\"text-align:justify\">\u5bfc\u5165cv2\u65f6&#xff0c;\u63d0\u793alibGL.so.1: cannot open shared object file: No such file or directo<\/li>\n<\/ul>\n<p>apt-get install libgl1-mesa-glx <\/p>\n<h4 id=\"5.%20cuda%E5%AE%89%E8%A3%85%C2%A0%20(%E4%B8%80%E8%88%AC%E9%95%9C%E5%83%8F%E4%B8%AD%E8%87%AA%E5%B8%A6%EF%BC%89\" style=\"margin-left:0px\">5. cuda\u5b89\u88c5\u00a0 (\u4e00\u822c\u955c\u50cf\u4e2d\u81ea\u5e26&#xff09;<\/h4>\n<ul>\n<li style=\"text-align:justify\">\u8fdb\u5165\u5b98\u7f51\u4e0b\u8f7d&#xff1a;https:\/\/developer.nvidia.com\/cuda-downloads<\/li>\n<\/ul>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"280\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c2ae89.png\" width=\"690\" \/><\/p>\n<ul>\n<li style=\"text-align:justify\">\u6309\u7167\u4fe1\u606f\u8fdb\u884c\u5b89\u88c5<\/li>\n<\/ul>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"176\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c4be53.png\" width=\"618\" \/><\/p>\n<ul>\n<li style=\"text-align:justify\">cuda\u73af\u5883\u914d\u7f6e\n<ul>\n<li style=\"text-align:justify\">\u6253\u5f00.bashrc\u6587\u4ef6&#xff1a;sudo gedit ~\/.bashrc<\/li>\n<li style=\"text-align:justify\">\u672b\u5c3e\u6dfb\u52a0\u4e0b\u5217\u4ee3\u7801 \u00a0\u00a0\u00a0<span style=\"background-color:#ff0000\"><span style=\"color:#ffffff\">cuda<\/span><\/span><span style=\"background-color:#ff0000\"><span style=\"color:#ffffff\">\u7248\u672c\u53f7\u9700\u8981\u66f4\u6539<\/span><\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>export LD_LIBRARY_PATH&#061;$LD_LIBRARY_PATH:\/usr\/local\/cuda-12.3\/lib64<br \/>\nexport PATH&#061;$PATH:\/usr\/local\/cuda-12.3\/bin<br \/>\nexport CUDA_HOME&#061;$CUDA_HOME:\/usr\/local\/cuda-12.3\u00a0\u00a0\u00a0 &#xff08;\u53ef\u7701\u7565&#xff09;<br \/>\n\u6ce8\u91ca&#xff1a;\u5177\u4f53\u7248\u672c\u53f7\u4e0e\u4f4d\u7f6e\u53ef\u80fd\u53d1\u751f\u6539\u53d8 <\/p>\n<ul>\n<li style=\"text-align:justify\">\u66f4\u65b0\u73af\u5883\u53d8\u91cf&#xff1a;source ~\/.bashrc\u00a0\u00a0\u00a0\u00a0\u00a0<\/li>\n<li style=\"text-align:justify\">\u9a8c\u8bc1\u7ed3\u679c&#xff1a;nvcc \u2013version<\/li>\n<\/ul>\n<p style=\"text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"160\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c6b8f1.png\" width=\"642\" \/><\/p>\n<ul>\n<li style=\"text-align:justify\">\u964d\u4f4ecuda\u7248\u672c&#xff1a;\u5e38\u89c1\u9519\u8bef\u5982\u4e0b<\/li>\n<\/ul>\n<p>E: Conflicting values set for option Signed-By regarding source<br \/>\n https:\/\/developer.download.nvidia.com\/compute\/cuda\/repos\/ubuntu2004\/x86_64\/ \/:<br \/>\n\/usr\/share\/keyrings\/cuda-archive-keyring.gpg !&#061;\u00a0 E: The list of sources could not be read. <\/p>\n<p style=\"margin-left:0px\"><span style=\"color:#0d0016\">\u53c2\u8003&#xff1a;\u5728 \/etc.apt\/source.list.d\/\u6587\u4ef6\u5939\u4e2d\u5220\u9664\u91cd\u590d\u6587\u4ef6&#xff08;\u6216\u8005\u91cd\u547d\u540d&#xff09;&#xff0c;\u7136\u540e\u8fdb\u884capt-get update\u547d\u4ee4\u5373\u53ef<\/span><\/p>\n<h4 id=\"6.%20cudnn%E5%AE%89%E8%A3%85%20(%E4%B8%80%E8%88%AC%E9%95%9C%E5%83%8F%E4%B8%AD%E8%87%AA%E5%B8%A6%EF%BC%89\" style=\"margin-left:0px\">6. cudnn\u5b89\u88c5 (\u4e00\u822c\u955c\u50cf\u4e2d\u81ea\u5e26&#xff09;<\/h4>\n<p>\u53c2\u8003\u535a\u6587&#xff1a;Ubuntu 20.04(linux) cuda(12)&#043;cudnn\u7684deb\u65b9\u5f0f\u5b89\u88c5\u4ee5\u53ca\u9a8c\u8bc1&#xff08;\u5b9d\u5b9d\u4e5f\u9002\u7528\u54df&#xff09;_ubuntu cudnn deb\u5b89\u88c5-CSDN\u535a\u5ba2<\/p>\n<ul>\n<li style=\"text-align:justify\">\u8fdb\u5165\u5b98\u7f51\u4e0b\u8f7d&#xff1a;cuDNN Download | NVIDIA Developer\u00a0\u00a0 \u00a0\u5bf9\u5e94\u7248\u672c12.&#xff1b;<span style=\"color:#0d0016\">\u5176\u4ed6\u7248\u672c\u4fe1\u606f\u53ef\u4ee5\u4ece\u4e0b\u65b9 archive of previous release \u4e2d\u8fdb\u5165\u4e0b\u8f7d<\/span><\/li>\n<\/ul>\n<p style=\"margin-left:24pt;text-align:justify\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"229\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c8c94d.png\" width=\"808\" \/><\/p>\n<ul>\n<li style=\"text-align:justify\">\u89e3\u538b\u538b\u7f29\u5305&#xff1a;\u547d\u4ee4\u884c\u6216\u8005\u624b\u52a8\u89e3\u538b<\/li>\n<li style=\"text-align:justify\">\u5b89\u88c5\u6b65\u9aa4&#xff1a;\u8fdb\u5165\u865a\u62df\u73af\u5883&#8211;&gt; \u590d\u5236cuDNN\u7684\u5934\u6587\u4ef6&#xff08;sudo cp cudnn\/include\/cudnn.h \/usr\/local\/cuda\/include&#xff09;&#8211;&gt; \u590d\u5236\u5e93\u6587\u4ef6&#xff08;sudo cp cudnn\/lib\/libcudnn* \/usr\/local\/cuda\/lib64&#xff09;&#8211;&gt; \u66f4\u6539\u53d8\u91cf\u6743\u9650&#xff08;sudo chmod a&#043;r \/usr\/local\/cuda\/include\/cudnn*.h \/usr\/local\/cuda\/lib64\/libcudnn*&#xff09;<\/li>\n<\/ul>\n<p style=\"margin-left:0;text-align:justify\">cudnn\u662f\u89e3\u538b\u5305\u7684\u6587\u4ef6\u540d&#xff0c;\u5927\u591a\u6570\u65f6\u5019\u9700\u8981\u5bf9\u6587\u4ef6\u8def\u5f84\u540d\u79f0\u8fdb\u884c\u4fee\u6539<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf21\u6b21\u3002anconda\u5b89\u88c5&amp;conda\u73af\u5883\u521b\u5efa&amp;pytorch-gpu\u5b89\u88c5&amp;\u5bb9\u5668\u57fa\u7840\u914d\u7f6e\u9519\u8bef\u96c6&amp;cuda\u5b89\u88c5&amp;cudnn\u5b89\u88c5_\u670d\u52a1\u5668\u5982\u4f55\u642d\u5efa\u6df1\u5ea6\u5b66\u4e60\u73af\u5883<\/p>\n","protected":false},"author":2,"featured_media":23976,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[88,62,1841,43,207,86,44],"topic":[],"class_list":["post-23981","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-conda","tag-62","tag-amp-","tag-43","tag-207","tag-86","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55 - \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\/23981.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf21\u6b21\u3002anconda\u5b89\u88c5&amp;conda\u73af\u5883\u521b\u5efa&amp;pytorch-gpu\u5b89\u88c5&amp;\u5bb9\u5668\u57fa\u7840\u914d\u7f6e\u9519\u8bef\u96c6&amp;cuda\u5b89\u88c5&amp;cudnn\u5b89\u88c5_\u670d\u52a1\u5668\u5982\u4f55\u642d\u5efa\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/23981.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-19T01:06:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c0e06b.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23981.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/23981.html\",\"name\":\"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-19T01:06:21+00:00\",\"dateModified\":\"2025-04-19T01:06:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/23981.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/23981.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/23981.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55\"}]},{\"@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":"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55 - \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\/23981.html","og_locale":"zh_CN","og_type":"article","og_title":"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.8k\u6b21\uff0c\u70b9\u8d5e31\u6b21\uff0c\u6536\u85cf21\u6b21\u3002anconda\u5b89\u88c5&amp;conda\u73af\u5883\u521b\u5efa&amp;pytorch-gpu\u5b89\u88c5&amp;\u5bb9\u5668\u57fa\u7840\u914d\u7f6e\u9519\u8bef\u96c6&amp;cuda\u5b89\u88c5&amp;cudnn\u5b89\u88c5_\u670d\u52a1\u5668\u5982\u4f55\u642d\u5efa\u6df1\u5ea6\u5b66\u4e60\u73af\u5883","og_url":"https:\/\/www.wsisp.com\/helps\/23981.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-19T01:06:21+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250419010620-6802f70c0e06b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/23981.html","url":"https:\/\/www.wsisp.com\/helps\/23981.html","name":"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-19T01:06:21+00:00","dateModified":"2025-04-19T01:06:21+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/23981.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/23981.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/23981.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u6df1\u5ea6\u5b66\u4e60\u73af\u5883\u914d\u7f6e\u2014\u20141.5 \u73af\u5883\u642d\u5efa\u9644\u5f55"}]},{"@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\/23981","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=23981"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/23981\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/23976"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=23981"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=23981"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=23981"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=23981"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}