{"id":14860,"date":"2025-04-18T21:32:20","date_gmt":"2025-04-18T13:32:20","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/14860.html"},"modified":"2025-04-18T21:32:20","modified_gmt":"2025-04-18T13:32:20","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8a%e8%bf%90%e8%a1%8cpython%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/14860.html","title":{"rendered":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6"},"content":{"rendered":"<p id=\"main-toc\">\u76ee\u5f55<\/p>\n<p id=\"-toc\" style=\"margin-left:40px\">\n<p id=\"%E5%89%8D%E7%BD%AE%E5%87%86%E5%A4%87-toc\" style=\"margin-left:40px\">\u524d\u7f6e\u51c6\u5907<\/p>\n<p id=\"%E8%AF%A6%E7%BB%86%E6%AD%A5%E9%AA%A4-toc\" style=\"margin-left:40px\">\u8be6\u7ec6\u6b65\u9aa4<\/p>\n<p id=\"%E4%B8%80%EF%BC%8C%E5%9C%A8%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%89%E8%A3%85Anaconda-toc\" style=\"margin-left:80px\">\u4e00&#xff0c;\u5728\u670d\u52a1\u5668\u5b89\u88c5Anaconda<\/p>\n<p id=\"%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85%E5%8C%85-toc\" style=\"margin-left:120px\">\u4e0b\u8f7d\u5b89\u88c5\u5305<\/p>\n<p id=\"%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6%E5%88%B0%E6%9C%8D%E5%8A%A1%E5%99%A8-toc\" style=\"margin-left:120px\">\u4e0a\u4f20\u6587\u4ef6\u5230\u670d\u52a1\u5668<\/p>\n<p id=\"%E5%AE%89%E8%A3%85%E7%8E%AF%E5%A2%83-toc\" style=\"margin-left:120px\">\u5b89\u88c5\u73af\u5883<\/p>\n<p id=\"%E4%BA%8C%EF%BC%8C%E5%88%9B%E5%BB%BA%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83-toc\" style=\"margin-left:80px\">\u4e8c&#xff0c;\u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<p id=\"%E5%88%9B%E5%BB%BA%E7%8E%AF%E5%A2%83-toc\" style=\"margin-left:120px\">\u521b\u5efa\u73af\u5883<\/p>\n<p id=\"%E4%B8%89%EF%BC%8C%E6%B5%8B%E8%AF%95%E6%89%A7%E8%A1%8Cpython%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:80px\">\u4e09&#xff0c;\u6d4b\u8bd5\u6267\u884cpython\u6587\u4ef6<\/p>\n<p id=\"%E6%89%A7%E8%A1%8Cpython%E6%96%87%E4%BB%B6-toc\" style=\"margin-left:120px\">\u6267\u884cpython\u6587\u4ef6<\/p>\n<p id=\"%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B%E7%8A%B6%E6%80%81-toc\" style=\"margin-left:120px\">\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001<\/p>\n<p id=\"%E6%80%BB%E7%BB%93-toc\" style=\"margin-left:40px\">\u603b\u7ed3<\/p>\n<hr id=\"hr-toc\" \/>\n<h3 id=\"%E5%89%8D%E7%BD%AE%E5%87%86%E5%A4%87\">\u524d\u7f6e\u51c6\u5907<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5982\u4f55\u5728\u4e2a\u4eba\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6&#xff0c;\u9996\u5148\u6211\u4eec\u9700\u8981\u51c6\u5907\u7684\u4e00\u4e9b\u4e1c\u897f&#xff1a;<\/p>\n<ul>\n<li>\u6709\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668&#xff0c;\u53ef\u4ee5\u5728\u817e\u8baf\u4e91\u6216\u8005\u963f\u91cc\u4e91\u7b49\u5546\u6237\u79df\u501f\u670d\u52a1\u5668<\/li>\n<li>\u80fd\u591f\u4f7f\u7528xshell\u7b49ssh\u8fde\u63a5\u5de5\u5177\u8f6f\u4ef6\u8fde\u63a5\u5230\u81ea\u5df1\u7684\u670d\u52a1\u5668<\/li>\n<li>\u4e0b\u8f7dLinux\u7248\u672c\u7684Anaconda\u7528\u6765\u8fd0\u884cpython\u6587\u4ef6\u7684\u5b89\u88c5\u73af\u5883<\/li>\n<\/ul>\n<h3 id=\"%E8%AF%A6%E7%BB%86%E6%AD%A5%E9%AA%A4\">\u8be6\u7ec6\u6b65\u9aa4<\/h3>\n<h4 id=\"%E4%B8%80%EF%BC%8C%E5%9C%A8%E6%9C%8D%E5%8A%A1%E5%99%A8%E5%AE%89%E8%A3%85Anaconda\">\u4e00&#xff0c;\u5728\u670d\u52a1\u5668\u5b89\u88c5Anaconda<\/h4>\n<h5 id=\"%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85%E5%8C%85\">\u4e0b\u8f7d\u5b89\u88c5\u5305<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u9996\u5148\u6211\u4eec\u5148\u4e0b\u8f7dAnaconda\u5b89\u88c5\u5305&#xff0c;\u4e0b\u8f7d\u5730\u5740https:\/\/repo.anaconda.com\/archive\/<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7b2c\u4e8c&#xff0c;\u627e\u5230\u6211\u4eec\u8981\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305&#xff0c;\u6ce8\u610f\u662fLinux\u7248\u672c&#xff0c;\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u9700\u6c42\u5b89\u88c5\u6240\u9700\u7248\u672c<\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"244\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-680254625ede6.png\" width=\"414\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0b\u8f7d\u53ef\u80fd\u6709\u70b9\u6162&#xff0c;\u5efa\u8bae\u4f7f\u7528\u8fc5\u96f7\u4e0b\u8f7d\u3002<\/p>\n<h5 id=\"%E4%B8%8A%E4%BC%A0%E6%96%87%E4%BB%B6%E5%88%B0%E6%9C%8D%E5%8A%A1%E5%99%A8\">\u4e0a\u4f20\u6587\u4ef6\u5230\u670d\u52a1\u5668<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0b\u8f7d\u5b8c\u5b89\u88c5\u5305\u540e\u6253\u5f00Xshell&#xff0c;\u8fde\u63a5\u81ea\u5df1\u7684\u670d\u52a1\u5668\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u53ef\u4ee5\u8df3\u8f6c\u5230\u6307\u5b9a\u6587\u4ef6\u5939\u4e0b\u5b89\u88c5&#xff08;cd \/test&#xff09;&#xff0c;\u4e5f\u53ef\u4ee5\u65b0\u5efa\u6587\u4ef6\u5939\u7528\u6765\u5b89\u88c5(mkdir test)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"66\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-6802546274ba6.png\" width=\"277\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"49\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-68025462848c0.png\" width=\"284\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8df3\u8f6c\u5230\u5b89\u88c5\u6587\u4ef6\u5939\u4e0b\u540e\u8f93\u5165\u547d\u4ee4rz&#xff0c;\u627e\u5230\u5b89\u88c5\u5305\u4e0a\u4f20\u6587\u4ef6\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0a\u4f20\u6210\u529f\u540e\u8f93\u5165\u547d\u4ee4ls,\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u6587\u4ef6\u662f\u767d\u8272\u7684&#xff0c;\u6ca1\u6709\u6267\u884c\u6743\u9650&#xff0c;\u8f93\u5165\u547d\u4ee4\u4fee\u6539\u6743\u9650<\/p>\n<p>chmod u&#043;x Anaconda3-2022.05-Linux-x86_64.sh <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8f93\u5165ls\u67e5\u770b&#xff0c;\u5b89\u88c5\u5305\u663e\u793a\u7eff\u8272\u5c31ok\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"68\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-6802546293f63.png\" width=\"525\" \/><\/p>\n<h5 id=\"%E5%AE%89%E8%A3%85%E7%8E%AF%E5%A2%83\">\u5b89\u88c5\u73af\u5883<\/h5>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e0a\u4f20\u5b8c\u6210\u540e\u5c31\u53ef\u4ee5\u6267\u884c\u5b89\u88c5\u547d\u4ee4<\/p>\n<p>sh Anaconda3-2022.05-Linux-x86_64.sh <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8f93\u5165python\u8fdb\u884c\u6d4b\u8bd5\u662f\u5426\u5b89\u88c5\u5b8c\u6210\u3002\u51fa\u73b0\u5982\u4e0b\u5373\u4e3a\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"125\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-68025462a3563.png\" width=\"749\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u7136\u540e\u9000\u51fapython&#xff0c;\u8f93\u5165exit();<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u63a5\u4e0b\u6765\u6211\u4eec\u9700\u8fdb\u884c\u4ee5\u4e0b\u73af\u5883\u914d\u7f6e<\/p>\n<p>vim ~\/.bashrc <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"309\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-68025462b3ba3.png\" width=\"499\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u8f93\u5165O&#xff1b;<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5728\u914d\u7f6e\u6587\u4ef6\u7a7a\u767d\u5904\u6dfb\u52a0\u5982\u4e0b\u914d\u7f6e&#xff0c;\u6309\u201ci\u201d\u8fdb\u5165\u7f16\u8f91\u6a21\u5f0f&#xff1a;<\/p>\n<p>#\u4e3a\u4e86\u907f\u514d\u4e0e\u5176\u4ed6\u670d\u52a1\u5668\u7528\u6237\u4ea7\u751f\u547d\u4ee4\u51b2\u7a81,\u4f7f\u7528\u81ea\u5df1\u7684\u82f1\u6587\u540d&#043;Python\u66ff\u4ee3python<br \/>\nalias namePython&#061;&#039;\/root\/anaconda3\/bin\/python&#039;<br \/>\n#\u8fd9\u91cc\u5199anaconda\u7684\u5b89\u88c5\u8def\u5f84<br \/>\nexport PATH&#061;&#034;\/root\/anaconda3\/bin:$PATH&#034; <\/p>\n<p class=\"img-center\"><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"298\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-68025462cdecd.png\" width=\"463\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u5b8c\u6210\u540e\u6309\u201cEsc\u201d,\u9000\u51fa\u7f16\u8f91\u6a21\u5f0f&#xff1b;\u7d27\u63a5\u7740\u6309\u201c&#xff1a;\u201d&#xff0c;\u8f93\u5165\u201cwq!\u201d\u4fdd\u5b58\u9000\u51fa\u3002<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6fc0\u6d3b\u6587\u4ef6<\/p>\n<p>source ~\/.bashrc <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u518d\u6b21\u9a8c\u8bc1<\/p>\n<p>conda <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0conda\u547d\u4ee4\u53ef\u4ee5\u4f7f\u7528&#xff0c;\u8fd9\u6837\u6211\u4eec\u5c31\u5b89\u88c5\u5b8c\u6210\u4e86\u3002<\/p>\n<h4 id=\"%E4%BA%8C%EF%BC%8C%E5%88%9B%E5%BB%BA%E8%99%9A%E6%8B%9F%E7%8E%AF%E5%A2%83\">\u4e8c&#xff0c;\u521b\u5efa\u865a\u62df\u73af\u5883<\/h4>\n<h5 id=\"%E5%88%9B%E5%BB%BA%E7%8E%AF%E5%A2%83\">\u521b\u5efa\u73af\u5883<\/h5>\n<p>conda create -n py39 python&#061;3.9.12 <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u521b\u5efa\u5b8c\u6210\u540e\u67e5\u770b\u5f53\u524d\u5b58\u5728\u54ea\u4e9b\u865a\u62df\u73af\u5883<\/p>\n<p>conda env list <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"106\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-68025462e805f.png\" width=\"409\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u6fc0\u6d3b\u865a\u62df\u73af\u5883&#xff0c;\u8fd9\u91cc\u662f\u4f60\u81ea\u5df1\u7684\u73af\u5883\u540d\u5b57<\/p>\n<p>source activate your_env_name <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"93\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133219-68025463040b2.png\" width=\"520\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u67e5\u770b\u5b89\u88c5\u4e86\u54ea\u4e9b\u5305\u3002\u81ea\u5e26\u7684\u5305\u8f83\u5c11&#xff0c;\u6709\u4e9b\u7a0b\u5e8f\u9700\u8981\u7684\u5305\u9700\u8981\u81ea\u5df1\u989d\u5916\u5bfc\u5165\u3002<\/p>\n<p>conda list<br \/>\nconda install package_name(\u5305\u540d) <\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u4e00\u4e9b\u5176\u4ed6\u547d\u4ee4:<\/p>\n<p>conda update conda&#xff1a;               \u68c0\u67e5\u66f4\u65b0\u5f53\u524dconda<br \/>\nconda search XXX                   \u641c\u7d22\u5305&#xff0c;\u67e5\u770b\u53ef\u5b89\u88c5\u7248\u672c<br \/>\nconda remove -n py36 &#8211;all         \u5220\u9664\u73af\u5883<br \/>\nconda deactivate                   \u9000\u51fa\u865a\u62df\u73af\u5883&#xff0c;conda4\u4e4b\u524d\u7248\u672c&#xff1a;source deactivate<\/p>\n<p>pip install &#8211;upgrade &lt;\u5305\u7684\u540d\u5b57&gt;     \u66f4\u65b0\u5305<br \/>\npip install python_igraph          &#xff08;import igraph\u5305&#xff09; <\/p>\n<h4 id=\"%E4%B8%89%EF%BC%8C%E6%B5%8B%E8%AF%95%E6%89%A7%E8%A1%8Cpython%E6%96%87%E4%BB%B6\">\u4e09&#xff0c;\u6d4b\u8bd5\u6267\u884cpython\u6587\u4ef6<\/h4>\n<h5 id=\"%E6%89%A7%E8%A1%8Cpython%E6%96%87%E4%BB%B6\">\u6267\u884cpython\u6587\u4ef6<\/h5>\n<ul>\n<li>\u6211\u4eec\u5728\u5f53\u524d\u73af\u5883\u4e0b\u8f93\u5165rz\u547d\u4ee4\u4e0a\u4f20.py\u6587\u4ef6\u3002<\/li>\n<li>\u4e0a\u4f20\u6210\u529f\u540e\u8f93\u5165\u6267\u884cpython\u6587\u4ef6\u547d\u4ee4:<\/li>\n<\/ul>\n<p>nohup python3 -u main.py &gt;&gt; my.log 2&gt;&amp;1 &amp;<\/p>\n<h5 id=\"%E6%9F%A5%E7%9C%8B%E8%BF%9B%E7%A8%8B%E7%8A%B6%E6%80%81\">\u67e5\u770b\u8fdb\u7a0b\u72b6\u6001<\/h5>\n<ul>\n<li>\u5728\u4f7f\u7528nohup\u542f\u52a8python\u65f6&#xff0c;\u4f1a\u751f\u6210\u4e00\u4e2a\u8fdb\u7a0bID<\/li>\n<li>\u53ef\u4ee5\u4f7f\u7528 jobs -l \u6765\u67e5\u770b\u5f53\u524d\u7ec8\u7aef\u7684\u5168\u90e8\u8fdb\u7a0b&#xff08;\u8be5\u547d\u4ee4\u53ea\u9002\u7528\u4e8e\u8be5\u7ec8\u7aef\u7a97\u53e3&#xff0c;\u82e5\u518d\u5f00\u4e00\u4e2a\u7a97\u53e3\u9700\u9002\u7528ps\u547d\u4ee4\u67e5\u770b\u5168\u5c40\u8fdb\u7a0b&#xff0c;\u5982\u4e0b\u547d\u4ee4&#xff09;<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"93\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133219-6802546313f0c.png\" width=\"828\" \/><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Running\u8bf4\u660e\u7a0b\u5e8f\u6b63\u5728\u6210\u529f\u8fd0\u884c\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"159\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133219-68025463284b9.png\" width=\"814\" \/><\/p>\n<ul>\n<li>\u00a0\u8fd8\u53ef\u4ee5\u5bf9\u6539python\u7a0b\u5e8f\u8fdb\u884c\u6682\u505c\u3001\u6062\u590d\u3001\u6740\u6b7b\u7b49\u64cd\u4f5c jobs -l      &#xff08;\u5f53\u524d\u7ec8\u7aef\u67e5\u770b\u5168\u90e8\u8fdb\u7a0b&#xff09;<br \/>\nps -aux|grep \u8fdb\u7a0b\u53f7  &#xff08;\u5168\u5c40\u5404\u4e2a\u65b0\u7ec8\u7aef\u67e5\u770b\u6307\u5b9a\u8fdb\u7a0b&#xff09;<br \/>\nps -ef         &#xff08;\u5168\u5c40\u5168\u90e8\u8fdb\u7a0b&#xff09;<br \/>\nkill -STOP \u8fdb\u7a0b\u53f7&#xff08;\u547d\u4ee4\u53ef\u4ee5\u76f4\u63a5\u6682\u505c\u4e00\u4e2a\u540e\u53f0\u4efb\u52a1&#xff09;<br \/>\nkill -CONT \u8fdb\u7a0b\u53f7&#xff08;\u547d\u4ee4\u53ef\u4ee5\u76f4\u63a5\u6062\u590d\u4e00\u4e2a\u540e\u53f0\u4efb\u52a1&#xff09;<br \/>\nkill -9 \u8fdb\u7a0b\u53f7     &#xff08;\u6740\u6b7b\u8fdb\u7a0b&#xff09; <\/p>\n<\/li>\n<\/ul>\n<h3 id=\"%E6%80%BB%E7%BB%93\">\u603b\u7ed3<\/h3>\n<p>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u505a\u5b8c\u8fd9\u4e9b\u6211\u4eec\u5df2\u7ecf\u80fd\u591f\u5728\u670d\u52a1\u5668\u4e0a\u6210\u529f\u8fd0\u884cpython\u6587\u4ef6&#xff0c;\u8981\u6ce8\u610f\u7684\u662f\u811a\u672c\u6587\u4ef6\u4e0d\u4f9d\u8d56\u4e8e\u56fe\u5f62\u754c\u9762&#xff0c;\u5e76\u4e14\u6839\u636e\u4f60\u7684\u670d\u52a1\u5668\u73af\u5883\u548c\u811a\u672c\u9700\u8981\u7684\u5e93&#xff0c;\u53ef\u80fd\u4f1a\u9700\u8981\u5b89\u88c5\u989d\u5916\u7684\u4f9d\u8d56\u9879\u3002<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.2k\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf36\u6b21\u3002\u5982\u4f55\u5728\u4e2a\u4eba\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6\uff0c\u9996\u5148\u6211\u4eec\u9700\u8981\u51c6\u5907\u7684\u4e00\u4e9b\u4e1c\u897f\uff1a1,\u6709\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u5728\u817e\u8baf\u4e91\u6216\u8005\u963f\u91cc\u4e91\u7b49\u5546\u6237\u79df\u501f\u670d\u52a1\u56682,\u80fd\u591f\u4f7f\u7528xshell\u7b49ssh\u8fde\u63a5\u5de5\u5177\u8f6f\u4ef6\u8fde\u63a5\u5230\u81ea\u5df1\u7684\u670d\u52a1\u56683,\u4e0b\u8f7dLinux\u7248\u672c\u7684Anaconda\u7528\u6765\u8fd0\u884cpython\u6587\u4ef6\u7684\u5b89\u88c5\u73af\u5883_\u670d\u52a1\u5668\u8fd0\u884cpython\u6587\u4ef6<\/p>\n","protected":false},"author":2,"featured_media":14849,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[950,58,43,44],"topic":[],"class_list":["post-14860","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-anaconda","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6 - \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\/14860.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.2k\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf36\u6b21\u3002\u5982\u4f55\u5728\u4e2a\u4eba\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6\uff0c\u9996\u5148\u6211\u4eec\u9700\u8981\u51c6\u5907\u7684\u4e00\u4e9b\u4e1c\u897f\uff1a1,\u6709\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u5728\u817e\u8baf\u4e91\u6216\u8005\u963f\u91cc\u4e91\u7b49\u5546\u6237\u79df\u501f\u670d\u52a1\u56682,\u80fd\u591f\u4f7f\u7528xshell\u7b49ssh\u8fde\u63a5\u5de5\u5177\u8f6f\u4ef6\u8fde\u63a5\u5230\u81ea\u5df1\u7684\u670d\u52a1\u56683,\u4e0b\u8f7dLinux\u7248\u672c\u7684Anaconda\u7528\u6765\u8fd0\u884cpython\u6587\u4ef6\u7684\u5b89\u88c5\u73af\u5883_\u670d\u52a1\u5668\u8fd0\u884cpython\u6587\u4ef6\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/14860.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-18T13:32:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-680254625ede6.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14860.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/14860.html\",\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T13:32:20+00:00\",\"dateModified\":\"2025-04-18T13:32:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/14860.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/14860.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14860.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6\"}]},{\"@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":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6 - \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\/14860.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb9.2k\u6b21\uff0c\u70b9\u8d5e16\u6b21\uff0c\u6536\u85cf36\u6b21\u3002\u5982\u4f55\u5728\u4e2a\u4eba\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6\uff0c\u9996\u5148\u6211\u4eec\u9700\u8981\u51c6\u5907\u7684\u4e00\u4e9b\u4e1c\u897f\uff1a1,\u6709\u81ea\u5df1\u7684\u4e91\u670d\u52a1\u5668\uff0c\u53ef\u4ee5\u5728\u817e\u8baf\u4e91\u6216\u8005\u963f\u91cc\u4e91\u7b49\u5546\u6237\u79df\u501f\u670d\u52a1\u56682,\u80fd\u591f\u4f7f\u7528xshell\u7b49ssh\u8fde\u63a5\u5de5\u5177\u8f6f\u4ef6\u8fde\u63a5\u5230\u81ea\u5df1\u7684\u670d\u52a1\u56683,\u4e0b\u8f7dLinux\u7248\u672c\u7684Anaconda\u7528\u6765\u8fd0\u884cpython\u6587\u4ef6\u7684\u5b89\u88c5\u73af\u5883_\u670d\u52a1\u5668\u8fd0\u884cpython\u6587\u4ef6","og_url":"https:\/\/www.wsisp.com\/helps\/14860.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T13:32:20+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250418133218-680254625ede6.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/14860.html","url":"https:\/\/www.wsisp.com\/helps\/14860.html","name":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T13:32:20+00:00","dateModified":"2025-04-18T13:32:20+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/14860.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/14860.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/14860.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5982\u4f55\u5728\u670d\u52a1\u5668\u4e0a\u8fd0\u884cpython\u6587\u4ef6"}]},{"@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\/14860","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=14860"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14860\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/14849"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=14860"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=14860"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=14860"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=14860"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}