{"id":88492,"date":"2026-08-01T09:09:13","date_gmt":"2026-08-01T01:09:13","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/88492.html"},"modified":"2026-08-01T09:09:13","modified_gmt":"2026-08-01T01:09:13","slug":"windows%e4%b8%8buv%e5%ae%89%e8%a3%85%e4%b8%8e%e7%8e%af%e5%a2%83%e9%85%8d%e7%bd%ae%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/88492.html","title":{"rendered":"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u4e00\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9 uv<\/li>\n<li>\n<ul>\n<li>1\u3001\u4f20\u7edf Python \u73af\u5883\u7ba1\u7406\u7684\u75db\u70b9<\/li>\n<li>2\u3001\u672c\u6587\u6700\u7ec8\u8981\u5b8c\u6210\u4ec0\u4e48<\/li>\n<\/ul>\n<\/li>\n<li>\u4e8c\u3001\u5b89\u88c5 uv<\/li>\n<li>\n<ul>\n<li>1\u3001\u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c<\/li>\n<li>2\u3001\u5c06 uv \u52a0\u5165 Path<\/li>\n<li>3\u3001\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c<\/li>\n<\/ul>\n<\/li>\n<li>\u4e09\u3001\u89c4\u5212 uv \u7684\u6570\u636e\u76ee\u5f55<\/li>\n<li>\n<ul>\n<li>1\u3001\u56db\u4e2a\u76ee\u5f55\u5206\u522b\u4fdd\u5b58\u4ec0\u4e48<\/li>\n<li>2\u3001\u4f7f\u7528 PowerShell \u4e00\u6b21\u5b8c\u6210\u914d\u7f6e<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u4f7f\u7528 uv \u5b89\u88c5 Python 3.10.18<\/li>\n<li>\n<ul>\n<li>1\u3001\u5b89\u88c5\u6307\u5b9a\u7248\u672c<\/li>\n<li>2\u3001\u68c0\u67e5 Python \u662f\u5426\u5b89\u88c5\u6210\u529f<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u4e3a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u73af\u5883<\/li>\n<li>\n<ul>\n<li>1\u3001\u5148\u8ba4\u8bc6\u4e09\u4e2a\u6838\u5fc3\u6587\u4ef6<\/li>\n<li>2\u3001\u56fa\u5b9a\u9879\u76ee\u7684 Python \u7248\u672c<\/li>\n<li>3\u3001\u6839\u636e\u9501\u6587\u4ef6\u540c\u6b65\u4f9d\u8d56<\/li>\n<li>4\u3001\u9a8c\u8bc1\u73af\u5883\u662f\u5426\u771f\u6b63\u53ef\u7528<\/li>\n<\/ul>\n<\/li>\n<li>\u516d\u3001\u5728 PyCharm \u4e2d\u9009\u62e9\u6b63\u786e\u7684\u89e3\u91ca\u5668<\/li>\n<li>\n<ul>\n<li>1\u3001uv \u914d\u7f6e\u5b8c\u6210\u540e\u4e3a\u4ec0\u4e48\u8fd8\u8981\u9009\u62e9\u89e3\u91ca\u5668<\/li>\n<li>2\u3001Notebook \u8fd8\u8981\u68c0\u67e5\u5185\u6838<\/li>\n<\/ul>\n<\/li>\n<li>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6cd5<\/li>\n<li>\n<ul>\n<li>1\u3001\u8f93\u5165 uv \u540e\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/li>\n<li>2\u3001\u521a\u521b\u5efa\u7684 cache\u3001python \u548c tools \u90fd\u662f\u7a7a\u7684<\/li>\n<li>3\u3001PyCharm \u63d0\u793a No module named pip<\/li>\n<li>4\u3001\u7a0b\u5e8f\u53ef\u4ee5\u8fd0\u884c&#xff0c;\u4f46\u7f16\u8f91\u5668\u4ecd\u7136\u6807\u7ea2<\/li>\n<li>5\u3001\u4e3a\u4ec0\u4e48\u4e0d\u5e94\u8be5\u590d\u5236\u522b\u4eba\u7684 .venv<\/li>\n<\/ul>\n<\/li>\n<li>\u516b\u3001\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/li>\n<li>\n<ul>\n<li>1\u3001Python \u4e0e\u9879\u76ee\u7ba1\u7406<\/li>\n<li>2\u3001\u8fd0\u884c\u9879\u76ee<\/li>\n<\/ul>\n<\/li>\n<li>\u4e5d\u3001\u603b\u7ed3<\/li>\n<\/ul>\n<hr \/>\n<h2>\u4e00\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9 uv<\/h2>\n<h3>1\u3001\u4f20\u7edf Python \u73af\u5883\u7ba1\u7406\u7684\u75db\u70b9<\/h3>\n<p>\u521a\u63a5\u89e6 Python \u9879\u76ee\u65f6&#xff0c;\u6211\u4eec\u901a\u5e38\u4f1a\u4f9d\u6b21\u5b89\u88c5 Python\u3001\u521b\u5efa\u865a\u62df\u73af\u5883\u3001\u6fc0\u6d3b\u73af\u5883&#xff0c;\u518d\u4f7f\u7528 pip \u5b89\u88c5\u4f9d\u8d56&#xff1a;<\/p>\n<p>python <span class=\"token operator\">&#8211;<\/span>m venv <span class=\"token punctuation\">.<\/span>venv<br \/>\n<span class=\"token punctuation\">.<\/span>\\\\<span class=\"token punctuation\">.<\/span>venv\\\\Scripts\\\\Activate<span class=\"token punctuation\">.<\/span>ps1<br \/>\npip install <span class=\"token operator\">&#8211;<\/span>r requirements<span class=\"token punctuation\">.<\/span>txt<\/p>\n<p>\u8fd9\u5957\u6d41\u7a0b\u53ef\u4ee5\u4f7f\u7528&#xff0c;\u4f46\u9879\u76ee\u4e00\u591a&#xff0c;\u5c31\u5bb9\u6613\u9047\u5230\u4e0b\u9762\u7684\u95ee\u9898&#xff1a;<\/p>\n<ul>\n<li>\u4e0d\u540c\u9879\u76ee\u8981\u6c42\u7684 Python \u7248\u672c\u4e0d\u540c&#xff1b;<\/li>\n<li>\u865a\u62df\u73af\u5883\u5efa\u597d\u4e86&#xff0c;IDE \u5374\u9009\u4e2d\u4e86\u53e6\u4e00\u4e2a\u89e3\u91ca\u5668&#xff1b;<\/li>\n<li>requirements.txt \u53ea\u8bb0\u5f55\u76f4\u63a5\u4f9d\u8d56&#xff0c;\u6362\u7535\u8111\u540e\u7248\u672c\u53ef\u80fd\u4e0d\u5b8c\u5168\u4e00\u81f4&#xff1b;<\/li>\n<li>\u4e0b\u8f7d\u5927\u91cf\u4f9d\u8d56\u8017\u65f6\u8f83\u957f&#xff0c;\u591a\u4e2a\u9879\u76ee\u8fd8\u4f1a\u91cd\u590d\u4e0b\u8f7d&#xff1b;<\/li>\n<li>pip\u3001\u865a\u62df\u73af\u5883\u548c Python \u7248\u672c\u9700\u8981\u5206\u522b\u7ba1\u7406\u3002<\/li>\n<\/ul>\n<p>uv \u5c06 Python \u7248\u672c\u3001\u865a\u62df\u73af\u5883\u3001\u4f9d\u8d56\u548c\u9501\u6587\u4ef6\u7edf\u4e00\u5230\u4e86\u4e00\u5957\u5de5\u4f5c\u6d41\u4e2d\u3002\u62ff\u5230\u5305\u542b pyproject.toml \u548c uv.lock \u7684\u9879\u76ee\u540e&#xff0c;\u901a\u5e38\u53ea\u9700\u8981&#xff1a;<\/p>\n<p>uv python pin 3<span class=\"token punctuation\">.<\/span>10<span class=\"token punctuation\">.<\/span>18<br \/>\nuv sync <span class=\"token operator\">&#8212;<\/span>locked<\/p>\n<p>uv \u5c31\u4f1a\u9009\u62e9\u6307\u5b9a\u7684 Python\u3001\u521b\u5efa\u9879\u76ee\u4e13\u5c5e\u7684 .venv&#xff0c;\u5e76\u6309\u7167\u9501\u6587\u4ef6\u5b89\u88c5\u51c6\u786e\u7248\u672c\u7684\u4f9d\u8d56\u3002<\/p>\n<h3>2\u3001\u672c\u6587\u6700\u7ec8\u8981\u5b8c\u6210\u4ec0\u4e48<\/h3>\n<p>\u672c\u6587\u4f7f\u7528\u7684\u73af\u5883\u5982\u4e0b&#xff1a;<\/p>\n<p>\u64cd\u4f5c\u7cfb\u7edf&#xff1a;Windows 11<br \/>\n\u7ec8\u7aef&#xff1a;Windows PowerShell<br \/>\nuv&#xff1a;0.11.31<br \/>\nPython&#xff1a;3.10.18<br \/>\n\u5f00\u53d1\u5de5\u5177&#xff1a;PyCharm<\/p>\n<p>\u6700\u7ec8\u76ee\u5f55\u89c4\u5212\u4e3a&#xff1a;<\/p>\n<p>D:\\\\UVProgram\\\\<br \/>\n\u251c\u2500 uv.exe<br \/>\n\u251c\u2500 uvx.exe<br \/>\n\u251c\u2500 uvw.exe<br \/>\n\u2514\u2500 uv\\\\<br \/>\n   \u251c\u2500 bin\\\\<br \/>\n   \u251c\u2500 cache\\\\<br \/>\n   \u251c\u2500 python\\\\<br \/>\n   \u2514\u2500 tools\\\\<\/p>\n<p>\u5176\u4e2d&#xff0c;uv \u7a0b\u5e8f\u3001Python\u3001\u7f13\u5b58\u548c\u5de5\u5177\u90fd\u653e\u5728 D \u76d8&#xff0c;\u7cfb\u7edf\u76d8\u4e0d\u4f1a\u56e0\u4e3a\u540e\u7eed\u5b66\u4e60\u591a\u4e2a\u9879\u76ee\u800c\u6301\u7eed\u589e\u957f\u3002<\/p>\n<h2>\u4e8c\u3001\u5b89\u88c5 uv<\/h2>\n<h3>1\u3001\u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c<\/h3>\n<p>\u5728 PowerShell \u4e2d\u53ef\u4ee5\u6267\u884c\u5b98\u65b9\u5b89\u88c5\u547d\u4ee4&#xff1a;<\/p>\n<p>powershell <span class=\"token operator\">&#8211;<\/span>ExecutionPolicy ByPass <span class=\"token operator\">&#8211;<\/span>c <span class=\"token string\">&#034;irm https:\/\/astral.sh\/uv\/install.ps1 | iex&#034;<\/span><\/p>\n<p>\u4e5f\u53ef\u4ee5\u901a\u8fc7 Windows \u5305\u7ba1\u7406\u5668\u5b89\u88c5&#xff1a;<\/p>\n<p>winget install <span class=\"token operator\">&#8212;<\/span>id&#061;astral-sh<span class=\"token punctuation\">.<\/span>uv <span class=\"token operator\">&#8211;<\/span>e<\/p>\n<p>\u5982\u679c\u5df2\u7ecf\u4ece uv \u53d1\u5e03\u9875\u9762\u83b7\u5f97\u4e86 uv.exe\u3001uvx.exe \u548c uvw.exe&#xff0c;\u4e5f\u53ef\u4ee5\u76f4\u63a5\u89e3\u538b\u4f7f\u7528\u3002\u672c\u6587\u91c7\u7528\u7684\u5c31\u662f\u8fd9\u79cd\u65b9\u5f0f&#xff0c;\u4e09\u4e2a\u6587\u4ef6\u653e\u5728&#xff1a;<\/p>\n<p>D:\\\\UVProgram<\/p>\n<p>uv \u662f\u72ec\u7acb\u53ef\u6267\u884c\u7a0b\u5e8f&#xff0c;\u4e0d\u9700\u8981\u518d\u901a\u8fc7\u4f20\u7edf\u5b89\u88c5\u5411\u5bfc\u5b89\u88c5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010903-6a6d472f7f99b.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>2\u3001\u5c06 uv \u52a0\u5165 Path<\/h3>\n<p>\u4ec5\u4ec5\u628a uv.exe \u653e\u8fdb\u6587\u4ef6\u5939\u8fd8\u4e0d\u591f\u3002Windows \u5fc5\u987b\u77e5\u9053\u53bb\u54ea\u91cc\u5bfb\u627e uv \u547d\u4ee4&#xff0c;\u56e0\u6b64\u9700\u8981\u628a\u4e0b\u9762\u7684\u76ee\u5f55\u52a0\u5165\u5f53\u524d\u7528\u6237\u7684 Path&#xff1a;<\/p>\n<p>D:\\\\UVProgram<br \/>\nD:\\\\UVProgram\\\\uv\\\\bin<\/p>\n<p>\u53ef\u4ee5\u6309 Win &#043; R&#xff0c;\u8f93\u5165&#xff1a;<\/p>\n<p>sysdm.cpl<\/p>\n<p>\u7136\u540e\u4f9d\u6b21\u8fdb\u5165\u201c\u9ad8\u7ea7\u201d\u2192\u201c\u73af\u5883\u53d8\u91cf\u201d\u2192\u201c\u7528\u6237\u53d8\u91cf\u201d\u2192\u201cPath\u201d\u8fdb\u884c\u6dfb\u52a0\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010904-6a6d4730a4511.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"300\" \/> <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010904-6a6d4730c1eb1.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" width=\"400\" \/><\/p>\n<h3>3\u3001\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c<\/h3>\n<p>\u4fee\u6539\u73af\u5883\u53d8\u91cf\u540e&#xff0c;\u8981\u5173\u95ed\u5df2\u7ecf\u6253\u5f00\u7684 PowerShell \u548c PyCharm&#xff0c;\u518d\u91cd\u65b0\u6253\u5f00\u3002\u65e7\u8fdb\u7a0b\u4e0d\u4f1a\u81ea\u52a8\u8bfb\u53d6\u521a\u521a\u5199\u5165\u7684\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<p>\u6267\u884c&#xff1a;<\/p>\n<p>uv <span class=\"token operator\">&#8212;<\/span>version<\/p>\n<p>\u53ea\u8981\u80fd\u591f\u6b63\u5e38\u663e\u793a\u7248\u672c\u53f7&#xff0c;\u5c31\u8bf4\u660e uv \u5df2\u7ecf\u53ef\u4ee5\u4f7f\u7528\u3002\u8fd8\u53ef\u4ee5\u68c0\u67e5 Windows \u5b9e\u9645\u8c03\u7528\u7684\u662f\u54ea\u4e2a\u6587\u4ef6&#xff1a;<\/p>\n<p>where<span class=\"token punctuation\">.<\/span>exe uv<\/p>\n<p>\u672c\u6587\u7684\u9884\u671f\u8def\u5f84\u662f&#xff1a;<\/p>\n<p>D:\\\\UVProgram\\\\uv.exe<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010905-6a6d473130a50.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u4e09\u3001\u89c4\u5212 uv \u7684\u6570\u636e\u76ee\u5f55<\/h2>\n<h3>1\u3001\u56db\u4e2a\u76ee\u5f55\u5206\u522b\u4fdd\u5b58\u4ec0\u4e48<\/h3>\n<p>\u4e3a\u4e86\u4fbf\u4e8e\u7ef4\u62a4&#xff0c;\u6211\u5728 D:\\\\UVProgram\\\\uv \u4e0b\u5efa\u7acb\u4e86\u56db\u4e2a\u76ee\u5f55&#xff1a;<\/p>\n<table>\n<tr>\u76ee\u5f55\u7528\u9014<\/tr>\n<tbody>\n<tr>\n<td>bin<\/td>\n<td>\u4fdd\u5b58 uv \u7ba1\u7406\u7684\u547d\u4ee4\u5165\u53e3<\/td>\n<\/tr>\n<tr>\n<td>cache<\/td>\n<td>\u4fdd\u5b58 Python \u548c\u4f9d\u8d56\u5305\u7684\u4e0b\u8f7d\u7f13\u5b58<\/td>\n<\/tr>\n<tr>\n<td>python<\/td>\n<td>\u4fdd\u5b58 uv \u5b89\u88c5\u7684 Python \u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>tools<\/td>\n<td>\u4fdd\u5b58\u901a\u8fc7 uv tool install \u5b89\u88c5\u7684\u72ec\u7acb\u5de5\u5177<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u7528\u4e8e\u4e0b\u8f7d Python\u3001\u5b89\u88c5\u4f9d\u8d56\u6216\u5b89\u88c5\u5de5\u5177\u7b49\u5185\u5bb9\u5230\u5bf9\u5e94\u76ee\u5f55\u4e2d\u3002<\/p>\n<h3>2\u3001\u4f7f\u7528 PowerShell \u4e00\u6b21\u5b8c\u6210\u914d\u7f6e<\/h3>\n<p>\u4e0b\u9762\u7684\u547d\u4ee4\u4f1a\u521b\u5efa\u76ee\u5f55\u3001\u5199\u5165\u7528\u6237\u73af\u5883\u53d8\u91cf&#xff0c;\u5e76\u8865\u5145\u7528\u6237 Path\u3002\u5982\u679c\u4f60\u7684\u5b89\u88c5\u4f4d\u7f6e\u4e0d\u540c&#xff0c;\u53ea\u9700\u8981\u4fee\u6539\u7b2c\u4e00\u884c\u3002<\/p>\n<p><span class=\"token variable\">$uvProgram<\/span> &#061; <span class=\"token string\">&#034;D:\\\\UVProgram&#034;<\/span><br \/>\n<span class=\"token variable\">$uvData<\/span> &#061; <span class=\"token string\">&#034;<span class=\"token variable\">$uvProgram<\/span>\\\\uv&#034;<\/span><br \/>\n<span class=\"token variable\">$uvBin<\/span> &#061; <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\bin&#034;<\/span><\/p>\n<p><span class=\"token function\">New-Item<\/span> <span class=\"token operator\">&#8211;<\/span>ItemType Directory <span class=\"token operator\">&#8211;<\/span>Force <span class=\"token operator\">&#8211;<\/span>Path &#096;<br \/>\n    <span class=\"token variable\">$uvBin<\/span><span class=\"token punctuation\">,<\/span> &#096;<br \/>\n    <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\cache&#034;<\/span><span class=\"token punctuation\">,<\/span> &#096;<br \/>\n    <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\python&#034;<\/span><span class=\"token punctuation\">,<\/span> &#096;<br \/>\n    <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\tools&#034;<\/span> <span class=\"token punctuation\">|<\/span> <span class=\"token function\">Out-Null<\/span><\/p>\n<p><span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;UV_INSTALL_DIR&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$uvProgram<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;UV_CACHE_DIR&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\cache&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;UV_PYTHON_INSTALL_DIR&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\python&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;UV_PYTHON_BIN_DIR&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$uvBin<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;UV_TOOL_DIR&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;<span class=\"token variable\">$uvData<\/span>\\\\tools&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;UV_TOOL_BIN_DIR&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token variable\">$uvBin<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token variable\">$userPath<\/span> &#061; <span class=\"token namespace\">[Environment]<\/span>::GetEnvironmentVariable<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Path&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token variable\">$pathItems<\/span> &#061; &#064;<span class=\"token punctuation\">(<\/span><span class=\"token variable\">$userPath<\/span> <span class=\"token operator\">&#8211;<\/span>split <span class=\"token string\">&#034;;&#034;<\/span> <span class=\"token punctuation\">|<\/span> <span class=\"token function\">Where-Object<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token variable\">$_<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token variable\">$pathItems<\/span> <span class=\"token operator\">-notcontains<\/span> <span class=\"token variable\">$uvProgram<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token variable\">$pathItems<\/span> <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token variable\">$uvProgram<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token variable\">$pathItems<\/span> <span class=\"token operator\">-notcontains<\/span> <span class=\"token variable\">$uvBin<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token variable\">$pathItems<\/span> <span class=\"token operator\">&#043;&#061;<\/span> <span class=\"token variable\">$uvBin<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token namespace\">[Environment]<\/span>::SetEnvironmentVariable<span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token string\">&#034;Path&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token variable\">$pathItems<\/span> <span class=\"token operator\">-join<\/span> <span class=\"token string\">&#034;;&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;User&#034;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token function\">Write-Host<\/span> <span class=\"token string\">&#034;\u914d\u7f6e\u5b8c\u6210&#xff0c;\u8bf7\u5173\u95ed\u7ec8\u7aef\u540e\u91cd\u65b0\u6253\u5f00\u3002&#034;<\/span> <span class=\"token operator\">&#8211;<\/span>ForegroundColor Green<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010905-6a6d4731e01e9.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u91cc\u9700\u8981\u6ce8\u610f&#xff1a;UV_INSTALL_DIR \u4e3b\u8981\u51b3\u5b9a uv \u5b89\u88c5\u7a0b\u5e8f\u5b58\u653e\u53ef\u6267\u884c\u6587\u4ef6\u7684\u4f4d\u7f6e&#xff1b;\u7f13\u5b58\u3001Python \u548c\u5de5\u5177\u76ee\u5f55\u5219\u5206\u522b\u7531\u5176\u4ed6\u53d8\u91cf\u63a7\u5236\u3002<\/p>\n<h2>\u56db\u3001\u4f7f\u7528 uv \u5b89\u88c5 Python 3.10.18<\/h2>\n<h3>1\u3001\u5b89\u88c5\u6307\u5b9a\u7248\u672c<\/h3>\n<p>\u91cd\u65b0\u6253\u5f00 PowerShell&#xff0c;\u6267\u884c&#xff1a;<\/p>\n<p>uv python install 3<span class=\"token punctuation\">.<\/span>10<span class=\"token punctuation\">.<\/span>18<\/p>\n<p>\u5b89\u88c5\u6210\u529f\u540e\u4f1a\u51fa\u73b0\u7c7b\u4f3c\u7ed3\u679c&#xff1a;<\/p>\n<p>Installed Python 3.10.18<br \/>\n&#043; cpython-3.10.18-windows-x86_64-none<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010907-6a6d47331bba0.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u7b2c\u4e00\u6b21\u5b89\u88c5\u9700\u8981\u4ece\u7f51\u7edc\u4e0b\u8f7d Python&#xff0c;\u56e0\u6b64\u5341\u51e0\u79d2\u751a\u81f3\u66f4\u4e45\u90fd\u5c5e\u4e8e\u6b63\u5e38\u60c5\u51b5\u3002\u8001\u5e08\u6f14\u793a\u53ea\u7528\u4e86\u51e0\u79d2&#xff0c;\u901a\u5e38\u662f\u56e0\u4e3a\u7f51\u7edc\u66f4\u5feb&#xff0c;\u6216\u8005\u5bf9\u5e94\u6587\u4ef6\u5df2\u7ecf\u5b58\u5728\u4e8e\u672c\u5730\u7f13\u5b58\u4e2d&#xff0c;\u5e76\u4e0d\u4ee3\u8868\u81ea\u5df1\u7684\u64cd\u4f5c\u6709\u95ee\u9898\u3002<\/p>\n<h3>2\u3001\u68c0\u67e5 Python \u662f\u5426\u5b89\u88c5\u6210\u529f<\/h3>\n<p>\u67e5\u770b\u5df2\u7ecf\u5b89\u88c5\u7684\u7248\u672c&#xff1a;<\/p>\n<p>uv python list <span class=\"token operator\">&#8212;<\/span>only-installed<\/p>\n<p>\u67e5\u627e Python 3.10.18 \u7684\u5b9e\u9645\u4f4d\u7f6e&#xff1a;<\/p>\n<p>uv python find 3<span class=\"token punctuation\">.<\/span>10<span class=\"token punctuation\">.<\/span>18<\/p>\n<p>\u8fd9\u91cc\u5b89\u88c5\u7684\u662f\u7531 uv \u7ba1\u7406\u7684 Python&#xff0c;\u4e0d\u9700\u8981\u628a\u5b83\u5f53\u4f5c\u666e\u901a Python \u5b89\u88c5\u5305\u518d\u6267\u884c\u4e00\u6b21\u5b89\u88c5\u7a0b\u5e8f\u3002<\/p>\n<h2>\u4e94\u3001\u4e3a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u73af\u5883<\/h2>\n<h3>1\u3001\u5148\u8ba4\u8bc6\u4e09\u4e2a\u6838\u5fc3\u6587\u4ef6<\/h3>\n<p>\u4e00\u4e2a\u4f7f\u7528 uv \u7ba1\u7406\u7684\u9879\u76ee\u901a\u5e38\u4f1a\u5305\u542b&#xff1a;<\/p>\n<table>\n<tr>\u6587\u4ef6\u4f5c\u7528<\/tr>\n<tbody>\n<tr>\n<td>pyproject.toml<\/td>\n<td>\u58f0\u660e\u9879\u76ee\u57fa\u672c\u4fe1\u606f\u3001Python \u8981\u6c42\u548c\u76f4\u63a5\u4f9d\u8d56<\/td>\n<\/tr>\n<tr>\n<td>uv.lock<\/td>\n<td>\u9501\u5b9a\u76f4\u63a5\u4f9d\u8d56\u548c\u95f4\u63a5\u4f9d\u8d56\u7684\u51c6\u786e\u7248\u672c<\/td>\n<\/tr>\n<tr>\n<td>.python-version<\/td>\n<td>\u6307\u5b9a\u5f53\u524d\u9879\u76ee\u4f7f\u7528\u7684 Python \u7248\u672c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5982\u679c\u8001\u5e08\u5df2\u7ecf\u63d0\u4f9b\u4e86 pyproject.toml \u548c uv.lock&#xff0c;\u5c31\u4e0d\u9700\u8981\u91cd\u65b0\u6267\u884c uv init&#xff0c;\u4e0d\u8981\u968f\u610f\u4fee\u6539\u8001\u5e08\u9501\u5b9a\u7684\u4f9d\u8d56\u7248\u672c\u3002<\/p>\n<h3>2\u3001\u56fa\u5b9a\u9879\u76ee\u7684 Python \u7248\u672c<\/h3>\n<p>\u5148\u8fdb\u5165\u9879\u76ee\u6839\u76ee\u5f55\u3002\u672c\u6587\u7684\u9879\u76ee\u76ee\u5f55\u4e3a&#xff1a;<\/p>\n<p><span class=\"token function\">Set-Location<\/span> <span class=\"token string\">&#034;D:\\\\Jupyter_Projects\\\\PythonProject\\\\\u5927\u6a21\u578b\u5b66\u4e60\\\\modelchat&#034;<\/span><\/p>\n<p>\u7136\u540e\u6267\u884c&#xff1a;<\/p>\n<p>uv python pin 3<span class=\"token punctuation\">.<\/span>10<span class=\"token punctuation\">.<\/span>18<\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u4f1a\u5728\u9879\u76ee\u6839\u76ee\u5f55\u751f\u6210 .python-version&#xff0c;\u6587\u4ef6\u5185\u5bb9\u53ea\u6709&#xff1a;<\/p>\n<p>3.10.18<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010907-6a6d4733ce5bd.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>3\u3001\u6839\u636e\u9501\u6587\u4ef6\u540c\u6b65\u4f9d\u8d56<\/h3>\n<p>\u7ee7\u7eed\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c&#xff1a;<\/p>\n<p>uv sync <span class=\"token operator\">&#8212;<\/span>locked<\/p>\n<p>\u8fd9\u6761\u547d\u4ee4\u4f1a\u5b8c\u6210\u56db\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u68c0\u67e5 pyproject.toml \u4e0e uv.lock \u662f\u5426\u4e00\u81f4&#xff1b;<\/li>\n<li>\u81ea\u52a8\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u4e0b\u7684 .venv&#xff1b;<\/li>\n<li>\u9009\u62e9 Python 3.10.18&#xff1b;<\/li>\n<li>\u6309\u7167\u9501\u6587\u4ef6\u5b89\u88c5\u51c6\u786e\u7248\u672c\u7684\u5168\u90e8\u4f9d\u8d56\u3002<\/li>\n<p>&#8211;locked \u8868\u793a\u4e0d\u5141\u8bb8\u5728\u540c\u6b65\u8fc7\u7a0b\u4e2d\u5077\u5077\u66f4\u65b0\u9501\u6587\u4ef6\u3002\u5982\u679c\u9879\u76ee\u58f0\u660e\u4e0e\u9501\u6587\u4ef6\u4e0d\u4e00\u81f4&#xff0c;uv \u4f1a\u76f4\u63a5\u63d0\u793a\u9519\u8bef&#xff0c;\u8fd9\u6709\u52a9\u4e8e\u4fdd\u8bc1\u5b66\u751f\u548c\u8001\u5e08\u4f7f\u7528\u540c\u4e00\u5957\u73af\u5883\u3002<\/p>\n<p>\u7b2c\u4e00\u6b21\u540c\u6b65\u65f6&#xff0c;\u7ec8\u7aef\u53ef\u80fd\u8fde\u7eed\u663e\u793a\u5f88\u591a\u7eff\u8272\u7684 &#043; \u548c\u5305\u540d\u3002\u8fd9\u8868\u793a\u4f9d\u8d56\u6b63\u5728\u5b89\u88c5\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010908-6a6d47348d287.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>uv \u9ed8\u8ba4\u6267\u884c\u201c\u7cbe\u786e\u540c\u6b65\u201d&#xff1a;\u4e0d\u5728\u9879\u76ee\u4f9d\u8d56\u58f0\u660e\u4e2d\u7684\u989d\u5916\u5305\u53ef\u80fd\u4f1a\u88ab\u79fb\u9664\u3002\u56e0\u6b64&#xff0c;\u65e5\u5e38\u5e94\u4f18\u5148\u901a\u8fc7 pyproject.toml\u3001uv add \u548c uv sync \u7ba1\u7406\u9879\u76ee\u4f9d\u8d56\u3002<\/p>\n<h3>4\u3001\u9a8c\u8bc1\u73af\u5883\u662f\u5426\u771f\u6b63\u53ef\u7528<\/h3>\n<p>\u68c0\u67e5\u9879\u76ee\u4f7f\u7528\u7684 Python&#xff1a;<\/p>\n<p>uv run python <span class=\"token operator\">&#8212;<\/span>version<\/p>\n<p>\u9884\u671f\u7ed3\u679c&#xff1a;<\/p>\n<p>Python 3.10.18<\/p>\n<p>\u518d\u9a8c\u8bc1\u8bfe\u7a0b\u4e2d\u4f1a\u4f7f\u7528\u7684\u4e3b\u8981\u4f9d\u8d56&#xff1a;<\/p>\n<p>uv run python <span class=\"token operator\">&#8211;<\/span>c <span class=\"token string\">&#034;import streamlit, langchain, openai; print(&#039;\u73af\u5883\u914d\u7f6e\u6210\u529f&#039;)&#034;<\/span><\/p>\n<p>\u5982\u679c\u8f93\u51fa&#xff1a;<\/p>\n<p>\u73af\u5883\u914d\u7f6e\u6210\u529f<\/p>\n<p>\u8bf4\u660e Python\u3001\u865a\u62df\u73af\u5883\u548c\u4f9d\u8d56\u90fd\u5df2\u7ecf\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010909-6a6d4735b3ca1.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u516d\u3001\u5728 PyCharm \u4e2d\u9009\u62e9\u6b63\u786e\u7684\u89e3\u91ca\u5668<\/h2>\n<h3>1\u3001uv \u914d\u7f6e\u5b8c\u6210\u540e\u4e3a\u4ec0\u4e48\u8fd8\u8981\u9009\u62e9\u89e3\u91ca\u5668<\/h3>\n<p>uv \u8d1f\u8d23\u521b\u5efa\u548c\u7ef4\u62a4\u8fd0\u884c\u73af\u5883&#xff0c;PyCharm \u8d1f\u8d23\u7f16\u8f91\u3001\u5206\u6790\u548c\u8fd0\u884c\u4ee3\u7801\u3002\u4e24\u8005\u5206\u5de5\u4e0d\u540c\u3002<\/p>\n<p>\u5373\u4f7f .venv \u5df2\u7ecf\u521b\u5efa\u6210\u529f&#xff0c;PyCharm \u4e5f\u4e0d\u4e00\u5b9a\u77e5\u9053\u5f53\u524d\u9879\u76ee\u5e94\u8be5\u4f7f\u7528\u54ea\u4e2a Python&#xff0c;\u56e0\u6b64\u4ecd\u9700\u8981\u5173\u8054\u4e00\u6b21\u9879\u76ee\u89e3\u91ca\u5668&#xff1a;<\/p>\n<p>\u9879\u76ee\u6839\u76ee\u5f55\\\\.venv\\\\Scripts\\\\python.exe<\/p>\n<p>\u672c\u6587\u5bf9\u5e94\u7684\u8def\u5f84\u662f&#xff1a;<\/p>\n<p>D:\\\\Jupyter_Projects\\\\PythonProject\\\\\u5927\u6a21\u578b\u5b66\u4e60\\\\modelchat\\\\.venv\\\\Scripts\\\\python.exe<\/p>\n<p>\u5728 PyCharm \u4e2d\u8fdb\u5165\u201c\u8bbe\u7f6e\u201d\u2192\u201cPython\u201d\u2192\u201c\u89e3\u91ca\u5668\u201d\u2192\u201c\u6dfb\u52a0\u89e3\u91ca\u5668\u201d\u2192\u201c\u6dfb\u52a0\u672c\u5730\u89e3\u91ca\u5668\u201d&#xff0c;\u9009\u62e9\u201c\u73b0\u6709\u73af\u5883\u201d&#xff0c;\u518d\u5b9a\u4f4d\u5230\u4e0a\u9762\u7684\u6587\u4ef6\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010909-6a6d4735f0fad.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u53f3\u4e0b\u89d2\u5e94\u663e\u793a\u7c7b\u4f3c&#xff1a;<\/p>\n<p>Python 3.10 (modelchat)<\/p>\n<h3>2\u3001Notebook \u8fd8\u8981\u68c0\u67e5\u5185\u6838<\/h3>\n<p>\u6253\u5f00 .ipynb \u540e&#xff0c;Notebook \u4f7f\u7528\u7684\u5185\u6838\u4e5f\u5e94\u8be5\u6765\u81ea\u9879\u76ee .venv\u3002\u53ef\u4ee5\u5728\u5355\u5143\u683c\u4e2d\u8fd0\u884c&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> sys<br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>sys<span class=\"token punctuation\">.<\/span>executable<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6b63\u786e\u7ed3\u679c\u5e94\u6307\u5411&#xff1a;<\/p>\n<p>\u9879\u76ee\u6839\u76ee\u5f55\\\\.venv\\\\Scripts\\\\python.exe<\/p>\n<p>PyCharm \u754c\u9762\u4e2d\u7684\u201cIDE \u6258\u7ba1\u670d\u52a1\u5668&#xff08;Auto&#xff09;\u201d\u6307\u7684\u662f Jupyter \u670d\u52a1\u8fde\u63a5\u65b9\u5f0f&#xff0c;\u4e0d\u7b49\u4e8e Python \u89e3\u91ca\u5668\u672c\u8eab\u3002<\/p>\n<h2>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u4e0e\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<h3>1\u3001\u8f93\u5165 uv \u540e\u63d0\u793a\u627e\u4e0d\u5230\u547d\u4ee4<\/h3>\n<p>\u5148\u4e34\u65f6\u628a uv \u52a0\u5165\u5f53\u524d PowerShell&#xff1a;<\/p>\n<p><span class=\"token variable\">$env<\/span>:Path &#061; <span class=\"token string\">&#034;D:\\\\UVProgram;<span class=\"token variable\">$env<\/span>:Path&#034;<\/span><br \/>\nuv <span class=\"token operator\">&#8212;<\/span>version<\/p>\n<p>\u5982\u679c\u8fd9\u6837\u53ef\u4ee5\u8fd0\u884c&#xff0c;\u8bf4\u660e uv \u672c\u8eab\u6ca1\u6709\u95ee\u9898&#xff0c;\u771f\u6b63\u7684\u539f\u56e0\u662f\u7528\u6237 Path \u6ca1\u6709\u914d\u7f6e\u6b63\u786e&#xff0c;\u6216\u8005\u4fee\u6539\u73af\u5883\u53d8\u91cf\u540e\u6ca1\u6709\u91cd\u542f\u7ec8\u7aef\u3002<\/p>\n<h3>2\u3001\u521a\u521b\u5efa\u7684 cache\u3001python \u548c tools \u90fd\u662f\u7a7a\u7684<\/h3>\n<p>\u8fd9\u662f\u6b63\u5e38\u73b0\u8c61\u3002\u6587\u4ef6\u5939\u53ea\u662f\u9884\u5148\u89c4\u5212\u7684\u5b58\u50a8\u4f4d\u7f6e&#xff1a;<\/p>\n<ul>\n<li>\u5b89\u88c5 Python \u540e&#xff0c;python \u624d\u4f1a\u51fa\u73b0\u5185\u5bb9&#xff1b;<\/li>\n<li>\u4e0b\u8f7d Python \u6216\u4f9d\u8d56\u540e&#xff0c;cache \u624d\u4f1a\u51fa\u73b0\u5185\u5bb9&#xff1b;<\/li>\n<li>\u4f7f\u7528 uv tool install \u540e&#xff0c;tools \u624d\u4f1a\u51fa\u73b0\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<p>\u7a7a\u6587\u4ef6\u5939\u4e0d\u4ee3\u8868\u914d\u7f6e\u5931\u8d25\u3002<\/p>\n<h3>3\u3001PyCharm \u63d0\u793a No module named pip<\/h3>\n<p>uv \u81ea\u5df1\u80fd\u591f\u5b89\u88c5\u4f9d\u8d56&#xff0c;\u6240\u4ee5 uv \u521b\u5efa\u7684\u73af\u5883\u4e0d\u4e00\u5b9a\u9884\u88c5 pip\u3002\u4f46\u90e8\u5206 PyCharm \u7248\u672c\u7684\u8f6f\u4ef6\u5305\u7ba1\u7406\u754c\u9762\u4ecd\u4f1a\u8c03\u7528 pip&#xff0c;\u6b64\u65f6\u53ef\u5728\u9879\u76ee\u6839\u76ee\u5f55\u6267\u884c&#xff1a;<\/p>\n<p>uv pip install pip<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010911-6a6d4737b2871.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fd9\u662f\u4e00\u9879 IDE \u517c\u5bb9\u63aa\u65bd&#xff0c;\u4e0d\u662f uv \u6b63\u5e38\u5de5\u4f5c\u7684\u5fc5\u8981\u6761\u4ef6\u3002\u5e76\u4e14\u7531\u4e8e uv sync \u9ed8\u8ba4\u91c7\u7528\u7cbe\u786e\u540c\u6b65&#xff0c;\u540e\u7eed\u518d\u6b21\u540c\u6b65\u65f6&#xff0c;\u672a\u58f0\u660e\u5728\u9879\u76ee\u4e2d\u7684 pip \u53ef\u80fd\u88ab\u79fb\u9664\u3002<\/p>\n<h3>4\u3001\u7a0b\u5e8f\u53ef\u4ee5\u8fd0\u884c&#xff0c;\u4f46\u7f16\u8f91\u5668\u4ecd\u7136\u6807\u7ea2<\/h3>\n<p>\u8fd9\u79cd\u60c5\u51b5\u901a\u5e38\u4e0d\u662f\u8fd0\u884c\u73af\u5883\u9519\u8bef&#xff0c;\u800c\u662f PyCharm \u7684\u4ee3\u7801\u7d22\u5f15\u5c1a\u672a\u66f4\u65b0\u3002<\/p>\n<p>\u5148\u5728 PyCharm \u7ec8\u7aef\u6267\u884c&#xff1a;<\/p>\n<p>python <span class=\"token operator\">&#8211;<\/span>c <span class=\"token string\">&#034;import sys, langchain_openai; print(sys.executable); print(langchain_openai.__file__)&#034;<\/span><\/p>\n<p>\u5982\u679c\u8f93\u51fa\u6307\u5411\u9879\u76ee .venv&#xff0c;\u800c\u4e14\u4ee3\u7801\u80fd\u591f\u6b63\u5e38\u8fd0\u884c&#xff0c;\u5c31\u8bf4\u660e\u4f9d\u8d56\u5df2\u7ecf\u5b89\u88c5\u3002\u6b64\u65f6\u53ef\u4ee5\u91cd\u65b0\u9009\u62e9\u89e3\u91ca\u5668&#xff0c;\u7b49\u5f85\u7d22\u5f15\u5b8c\u6210&#xff0c;\u5fc5\u8981\u65f6\u518d\u4f7f\u7528 PyCharm \u7684\u201c\u4f7f\u7f13\u5b58\u5931\u6548\u5e76\u91cd\u542f\u201d\u3002<\/p>\n<p>\u4e0d\u8981\u4e3a\u4e86\u6d88\u9664\u7ea2\u7ebf\u968f\u610f\u5347\u7ea7\u8001\u5e08\u9501\u5b9a\u7684\u4f9d\u8d56&#xff0c;\u5426\u5219\u53ef\u80fd\u8ba9\u4ee3\u7801\u548c\u8bfe\u7a0b\u73af\u5883\u4ea7\u751f\u7248\u672c\u5dee\u5f02\u3002<\/p>\n<h3>5\u3001\u4e3a\u4ec0\u4e48\u4e0d\u5e94\u8be5\u590d\u5236\u522b\u4eba\u7684 .venv<\/h3>\n<p>.venv \u4e2d\u53ef\u80fd\u5305\u542b\u539f\u7535\u8111\u548c\u539f\u9879\u76ee\u7684\u7edd\u5bf9\u8def\u5f84&#xff0c;\u76f4\u63a5\u590d\u5236\u6216\u79fb\u52a8\u540e\u5bb9\u6613\u5931\u6548\u3002<\/p>\n<p>\u771f\u6b63\u5e94\u8be5\u4fdd\u5b58\u548c\u4f20\u9012\u7684\u662f&#xff1a;<\/p>\n<p>pyproject.toml<br \/>\nuv.lock<br \/>\n.python-version<\/p>\n<p>\u6362\u7535\u8111\u6216\u79fb\u52a8\u9879\u76ee\u540e&#xff0c;\u5728\u65b0\u7684\u9879\u76ee\u76ee\u5f55\u91cd\u65b0\u6267\u884c&#xff1a;<\/p>\n<p>uv sync <span class=\"token operator\">&#8212;<\/span>locked<\/p>\n<p>\u8fd9\u4e5f\u662f\u9501\u6587\u4ef6\u5b58\u5728\u7684\u610f\u4e49&#xff1a;\u4f20\u9012\u73af\u5883\u8bf4\u660e&#xff0c;\u800c\u4e0d\u662f\u4f20\u9012\u4e00\u6574\u4e2a\u865a\u62df\u73af\u5883\u6587\u4ef6\u5939\u3002<\/p>\n<h2>\u516b\u3001\u5e38\u7528\u547d\u4ee4\u901f\u67e5<\/h2>\n<h3>1\u3001Python \u4e0e\u9879\u76ee\u7ba1\u7406<\/h3>\n<p><span class=\"token comment\"># \u67e5\u770b uv \u7248\u672c<\/span><br \/>\nuv <span class=\"token operator\">&#8212;<\/span>version<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5\u6307\u5b9a Python<\/span><br \/>\nuv python install 3<span class=\"token punctuation\">.<\/span>10<span class=\"token punctuation\">.<\/span>18<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u5df2\u5b89\u88c5\u7684 Python<\/span><br \/>\nuv python list <span class=\"token operator\">&#8212;<\/span>only-installed<\/p>\n<p><span class=\"token comment\"># \u4e3a\u5f53\u524d\u9879\u76ee\u56fa\u5b9a Python<\/span><br \/>\nuv python pin 3<span class=\"token punctuation\">.<\/span>10<span class=\"token punctuation\">.<\/span>18<\/p>\n<p><span class=\"token comment\"># \u6309\u9501\u6587\u4ef6\u540c\u6b65\u9879\u76ee<\/span><br \/>\nuv sync <span class=\"token operator\">&#8212;<\/span>locked<\/p>\n<p><span class=\"token comment\"># \u67e5\u770b\u4f9d\u8d56\u6811<\/span><br \/>\nuv tree<\/p>\n<h3>2\u3001\u8fd0\u884c\u9879\u76ee<\/h3>\n<p><span class=\"token comment\"># \u67e5\u770b\u9879\u76ee\u73af\u5883\u4e2d\u7684 Python \u7248\u672c<\/span><br \/>\nuv run python <span class=\"token operator\">&#8212;<\/span>version<\/p>\n<p><span class=\"token comment\"># \u8fd0\u884c\u666e\u901a Python \u6587\u4ef6<\/span><br \/>\nuv run python main<span class=\"token punctuation\">.<\/span>py<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8 Streamlit<\/span><br \/>\nuv run streamlit run main<span class=\"token punctuation\">.<\/span>py<\/p>\n<p><span class=\"token comment\"># \u542f\u52a8 Jupyter Lab<\/span><br \/>\nuv run jupyter lab<\/p>\n<p>uv run \u4f1a\u5728\u6267\u884c\u547d\u4ee4\u524d\u68c0\u67e5\u9879\u76ee\u73af\u5883&#xff0c;\u56e0\u6b64\u5e73\u65f6\u5373\u4f7f\u4e0d\u624b\u52a8\u6fc0\u6d3b .venv&#xff0c;\u4e5f\u80fd\u786e\u4fdd\u547d\u4ee4\u5728\u6b63\u786e\u7684\u73af\u5883\u4e2d\u8fd0\u884c\u3002<\/p>\n<h2>\u4e5d\u3001\u603b\u7ed3<\/h2>\n<p>\u672c\u6587\u5b8c\u6210\u4e86 Windows 11 \u4e0b uv\u3001Python 3.10.18\u3001\u9879\u76ee\u865a\u62df\u73af\u5883\u548c PyCharm \u89e3\u91ca\u5668\u7684\u5b8c\u6574\u914d\u7f6e\u3002<\/p>\n<p>\u6574\u4e2a\u8fc7\u7a0b\u6700\u503c\u5f97\u8bb0\u4f4f\u7684\u662f&#xff1a;<\/p>\n<li>uv.exe \u6240\u5728\u76ee\u5f55\u5fc5\u987b\u52a0\u5165 Path&#xff1b;<\/li>\n<li>\u6bcf\u4e2a\u9879\u76ee\u5e94\u62e5\u6709\u72ec\u7acb\u7684 .venv&#xff1b;<\/li>\n<li>.python-version \u7528\u4e8e\u56fa\u5b9a Python \u7248\u672c&#xff1b;<\/li>\n<li>pyproject.toml \u7528\u4e8e\u58f0\u660e\u9879\u76ee\u4f9d\u8d56&#xff1b;<\/li>\n<li>uv.lock \u7528\u4e8e\u9501\u5b9a\u5b8c\u6574\u4f9d\u8d56\u7248\u672c&#xff1b;<\/li>\n<li>\u5df2\u6709\u9501\u6587\u4ef6\u65f6\u4f18\u5148\u6267\u884c uv sync &#8211;locked&#xff1b;<\/li>\n<li>PyCharm \u9700\u8981\u5173\u8054\u9879\u76ee\u7684 .venv\\\\Scripts\\\\python.exe&#xff1b;<\/li>\n<li>\u4e0d\u8981\u590d\u5236\u522b\u4eba\u7684 .venv&#xff0c;\u5e94\u5728\u672c\u673a\u901a\u8fc7\u9501\u6587\u4ef6\u91cd\u65b0\u540c\u6b65\u3002<\/li>\n<p>\u5b8c\u6210\u8fd9\u5957\u57fa\u7840\u73af\u5883\u540e&#xff0c;\u540e\u7eed\u5b66\u4e60 LangChain\u3001RAG\u3001Streamlit \u548c Agent \u65f6&#xff0c;\u5c31\u53ef\u4ee5\u7ee7\u7eed\u590d\u7528\u540c\u4e00\u5957 uv \u5de5\u4f5c\u6d41&#xff0c;\u540c\u65f6\u8ba9\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5f7c\u6b64\u9694\u79bb\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9 uv1\u3001\u4f20\u7edf Python \u73af\u5883\u7ba1\u7406\u7684\u75db\u70b92\u3001\u672c\u6587\u6700\u7ec8\u8981\u5b8c\u6210\u4ec0\u4e48\u4e8c\u3001\u5b89\u88c5 uv1\u3001\u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c2\u3001\u5c06 uv \u52a0\u5165 Path3\u3001\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c\u4e09\u3001\u89c4\u5212 uv \u7684\u6570\u636e\u76ee\u5f551\u3001\u56db\u4e2a\u76ee\u5f55\u5206\u522b\u4fdd\u5b58\u4ec0\u4e482\u3001\u4f7f\u7528 PowerShell \u4e00\u6b21\u5b8c\u6210\u914d\u7f6e\u56db\u3001\u4f7f\u7528 uv \u5b89\u88c5 Python 3.10.181\u3001\u5b89\u88c5\u6307\u5b9a\u7248\u672c2\u3001\u68c0\u67e5 Python \u662f\u5426\u5b89\u88c5\u6210\u529f\u4e94\u3001\u4e3a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u73af\u58831\u3001\u5148\u8ba4\u8bc6\u4e09\u4e2a\u6838\u5fc3\u6587\u4ef62\u3001\u56fa\u5b9a\u9879\u76ee\u7684 Python \u7248\u672c3\u3001\u6839\u636e\u9501\u6587\u4ef6\u540c\u6b65\u4f9d\u8d564\u3001\u9a8c\u8bc1\u73af\u5883\u662f\u5426\u771f<\/p>\n","protected":false},"author":2,"featured_media":88481,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[92,4555,149],"topic":[],"class_list":["post-88492","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-github","tag-uv","tag-windows"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b - \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\/88492.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9 uv1\u3001\u4f20\u7edf Python \u73af\u5883\u7ba1\u7406\u7684\u75db\u70b92\u3001\u672c\u6587\u6700\u7ec8\u8981\u5b8c\u6210\u4ec0\u4e48\u4e8c\u3001\u5b89\u88c5 uv1\u3001\u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c2\u3001\u5c06 uv \u52a0\u5165 Path3\u3001\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c\u4e09\u3001\u89c4\u5212 uv \u7684\u6570\u636e\u76ee\u5f551\u3001\u56db\u4e2a\u76ee\u5f55\u5206\u522b\u4fdd\u5b58\u4ec0\u4e482\u3001\u4f7f\u7528 PowerShell \u4e00\u6b21\u5b8c\u6210\u914d\u7f6e\u56db\u3001\u4f7f\u7528 uv \u5b89\u88c5 Python 3.10.181\u3001\u5b89\u88c5\u6307\u5b9a\u7248\u672c2\u3001\u68c0\u67e5 Python \u662f\u5426\u5b89\u88c5\u6210\u529f\u4e94\u3001\u4e3a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u73af\u58831\u3001\u5148\u8ba4\u8bc6\u4e09\u4e2a\u6838\u5fc3\u6587\u4ef62\u3001\u56fa\u5b9a\u9879\u76ee\u7684 Python \u7248\u672c3\u3001\u6839\u636e\u9501\u6587\u4ef6\u540c\u6b65\u4f9d\u8d564\u3001\u9a8c\u8bc1\u73af\u5883\u662f\u5426\u771f\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/88492.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-01T01:09:13+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010903-6a6d472f7f99b.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\/88492.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/88492.html\",\"name\":\"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-01T01:09:13+00:00\",\"dateModified\":\"2026-08-01T01:09:13+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/88492.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/88492.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/88492.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b\"}]},{\"@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":"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b - \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\/88492.html","og_locale":"zh_CN","og_type":"article","og_title":"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u4e3a\u4ec0\u4e48\u9009\u62e9 uv1\u3001\u4f20\u7edf Python \u73af\u5883\u7ba1\u7406\u7684\u75db\u70b92\u3001\u672c\u6587\u6700\u7ec8\u8981\u5b8c\u6210\u4ec0\u4e48\u4e8c\u3001\u5b89\u88c5 uv1\u3001\u4f7f\u7528\u5b98\u65b9\u5b89\u88c5\u811a\u672c2\u3001\u5c06 uv \u52a0\u5165 Path3\u3001\u9a8c\u8bc1\u5b89\u88c5\u7ed3\u679c\u4e09\u3001\u89c4\u5212 uv \u7684\u6570\u636e\u76ee\u5f551\u3001\u56db\u4e2a\u76ee\u5f55\u5206\u522b\u4fdd\u5b58\u4ec0\u4e482\u3001\u4f7f\u7528 PowerShell \u4e00\u6b21\u5b8c\u6210\u914d\u7f6e\u56db\u3001\u4f7f\u7528 uv \u5b89\u88c5 Python 3.10.181\u3001\u5b89\u88c5\u6307\u5b9a\u7248\u672c2\u3001\u68c0\u67e5 Python \u662f\u5426\u5b89\u88c5\u6210\u529f\u4e94\u3001\u4e3a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u73af\u58831\u3001\u5148\u8ba4\u8bc6\u4e09\u4e2a\u6838\u5fc3\u6587\u4ef62\u3001\u56fa\u5b9a\u9879\u76ee\u7684 Python \u7248\u672c3\u3001\u6839\u636e\u9501\u6587\u4ef6\u540c\u6b65\u4f9d\u8d564\u3001\u9a8c\u8bc1\u73af\u5883\u662f\u5426\u771f","og_url":"https:\/\/www.wsisp.com\/helps\/88492.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-01T01:09:13+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/08\/20260801010903-6a6d472f7f99b.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\/88492.html","url":"https:\/\/www.wsisp.com\/helps\/88492.html","name":"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-01T01:09:13+00:00","dateModified":"2026-08-01T01:09:13+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/88492.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/88492.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/88492.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Windows\u4e0buv\u5b89\u88c5\u4e0e\u73af\u5883\u914d\u7f6e\u6559\u7a0b"}]},{"@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\/88492","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=88492"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/88492\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/88481"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=88492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=88492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=88492"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=88492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}