{"id":1178990,"date":"2025-01-15T18:17:47","date_gmt":"2025-01-15T10:17:47","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1178990.html"},"modified":"2025-01-15T18:17:49","modified_gmt":"2025-01-15T10:17:49","slug":"python%e5%a6%82%e4%bd%95wheal%e5%ae%89%e8%a3%85%e5%8c%85","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1178990.html","title":{"rendered":"python\u5982\u4f55wheal\u5b89\u88c5\u5305"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25113526\/37bee2f0-ce9e-42bb-88a3-bd0f579aa9ad.webp\" alt=\"python\u5982\u4f55wheal\u5b89\u88c5\u5305\" \/><\/p>\n<p><p> <strong>\u8981\u5728Python\u4e2d\u5b89\u88c5wheel\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u3001\u786e\u4fddpip\u5df2\u7ecf\u66f4\u65b0\u3001\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883\u3001\u68c0\u67e5\u4f9d\u8d56\u5173\u7cfb\u3001\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684wheel\u5305\u3002<\/strong>\u5176\u4e2d\uff0c\u4f7f\u7528pip\u5b89\u88c5\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u4f7f\u7528pip\u5b89\u88c5wheel\u5305\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528pip\u5b89\u88c5wheel\u5305<\/h3>\n<\/p>\n<ol>\n<li>\u6253\u5f00\u547d\u4ee4\u884c\u7ec8\u7aef\uff08Windows\u7528\u6237\u53ef\u4ee5\u4f7f\u7528cmd\uff0cMac\u548cLinux\u7528\u6237\u53ef\u4ee5\u4f7f\u7528\u7ec8\u7aef\uff09\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5wheel\u5305\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>pip\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5wheel\u5305\u4ee5\u53ca\u5176\u6240\u6709\u4f9d\u8d56\u9879\u3002\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip show wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u547d\u4ee4\u5c06\u663e\u793a\u5b89\u88c5\u7684wheel\u5305\u7684\u8be6\u7ec6\u4fe1\u606f\uff0c\u5305\u62ec\u7248\u672c\u53f7\u3001\u5b89\u88c5\u4f4d\u7f6e\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u786e\u4fddpip\u5df2\u7ecf\u66f4\u65b0<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5wheel\u5305\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684pip\u7248\u672c\u662f\u6700\u65b0\u7684\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u66f4\u65b0pip\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install --upgrade pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u66f4\u65b0\u5b8c\u6210\u540e\uff0c\u518d\u6b21\u4f7f\u7528pip\u5b89\u88c5wheel\u5305\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u4f60\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7248\u672c\u7684pip\uff0c\u4ece\u800c\u907f\u514d\u4e00\u4e9b\u6f5c\u5728\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u4efb\u4f55\u5305\u4e4b\u524d\uff0c\u5efa\u8bae\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883\uff08virtual environment\uff09\u3002\u865a\u62df\u73af\u5883\u5141\u8bb8\u4f60\u5728\u9694\u79bb\u7684\u73af\u5883\u4e2d\u5b89\u88c5\u5305\uff0c\u907f\u514d\u5305\u4e4b\u95f4\u7684\u51b2\u7a81\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u521b\u5efa\u548c\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<p>python -m venv myenv<\/p>\n<h2><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff08Windows\uff09<\/strong><\/h2>\n<p>myenv\\Scripts\\activate<\/p>\n<h2><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff08Mac\u548cLinux\uff09<\/strong><\/h2>\n<p>source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u865a\u62df\u73af\u5883\u4e2d\uff0c\u4f60\u53ef\u4ee5\u5b89\u5168\u5730\u5b89\u88c5wheel\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u68c0\u67e5\u4f9d\u8d56\u5173\u7cfb<\/h3>\n<\/p>\n<p><p>\u5728\u5b89\u88c5wheel\u5305\u4e4b\u524d\uff0c\u786e\u4fdd\u4f60\u7684\u9879\u76ee\u4e2d\u6ca1\u6709\u4e0ewheel\u5305\u51b2\u7a81\u7684\u4f9d\u8d56\u9879\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u67e5\u770b\u5f53\u524d\u5b89\u88c5\u7684\u6240\u6709\u5305\u53ca\u5176\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip freeze<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u53d1\u73b0\u4efb\u4f55\u51b2\u7a81\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5378\u8f7d\u76f8\u5173\u7684\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip uninstall &lt;package_name&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684wheel\u5305<\/h3>\n<\/p>\n<p><p>\u6709\u65f6\u4f60\u53ef\u80fd\u9700\u8981\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684wheel\u5305\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u6307\u5b9a\u7248\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wheel==0.36.2<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd\u4f60\u5b89\u88c5\u7684\u662f\u6307\u5b9a\u7248\u672c\u7684wheel\u5305\uff0c\u800c\u4e0d\u662f\u6700\u65b0\u7248\u672c\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u4e0b\u8f7d\u5e76\u5b89\u88c5wheel\u6587\u4ef6<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5df2\u7ecf\u4e0b\u8f7d\u4e86wheel\u6587\u4ef6\uff08.whl\uff09\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install &lt;path_to_wheel_file&gt;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install .\/wheel-0.36.2-py2.py3-none-any.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e03\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<\/p>\n<ol>\n<li><strong>\u7f51\u7edc\u95ee\u9898\u5bfc\u81f4\u5b89\u88c5\u5931\u8d25<\/strong>\uff1a\u5982\u679c\u4f60\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u7f51\u7edc\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4f7f\u7528\u56fd\u5185\u7684\u955c\u50cf\u6e90\uff0c\u4f8b\u5982\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install wheel -i https:\/\/pypi.tuna.tsinghua.edu.cn\/simple<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6743\u9650\u95ee\u9898<\/strong>\uff1a\u5982\u679c\u4f60\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install wheel --user<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f9d\u8d56\u9879\u51b2\u7a81<\/strong>\uff1a\u5982\u679c\u9047\u5230\u4f9d\u8d56\u9879\u51b2\u7a81\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5f3a\u5236\u91cd\u65b0\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\u9879\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">pip install wheel --force-reinstall<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u987a\u5229\u5b89\u88c5wheel\u5305\uff0c\u5e76\u89e3\u51b3\u53ef\u80fd\u9047\u5230\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h3>\u516b\u3001wheel\u5305\u7684\u5e94\u7528<\/h3>\n<\/p>\n<p><h4>1. \u521b\u5efawheel\u5206\u53d1\u5305<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5wheel\u5305\u540e\uff0c\u4f60\u53ef\u4ee5\u5c06\u4f60\u7684Python\u9879\u76ee\u6253\u5305\u6210wheel\u5206\u53d1\u5305\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u9879\u76ee\u4e2d\u6709\u4e00\u4e2asetup.py\u6587\u4ef6\u3002\u7136\u540e\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u521b\u5efawheel\u5206\u53d1\u5305\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python setup.py bdist_wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8be5\u547d\u4ee4\u5c06\u5728dist\u76ee\u5f55\u4e2d\u751f\u6210\u4e00\u4e2awheel\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u5206\u53d1\u7ed9\u5176\u4ed6\u7528\u6237\u6216\u4e0a\u4f20\u5230PyPI\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b89\u88c5\u672c\u5730wheel\u6587\u4ef6<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u672c\u5730\u7684wheel\u6587\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u5b89\u88c5\u8be5\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install path\/to\/your_package.whl<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4f60\u5df2\u7ecf\u4ece\u5176\u4ed6\u5730\u65b9\u83b7\u5f97\u4e86wheel\u6587\u4ef6\u5e76\u5e0c\u671b\u5728\u672c\u5730\u5b89\u88c5\u7684\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><h3>\u4e5d\u3001wheel\u5305\u7684\u4f18\u70b9<\/h3>\n<\/p>\n<p><h4>1. \u66f4\u5feb\u7684\u5b89\u88c5\u901f\u5ea6<\/h4>\n<\/p>\n<p><p>\u76f8\u6bd4\u4e8e\u6e90\u4ee3\u7801\u5206\u53d1\u5305\uff0cwheel\u5305\u7684\u5b89\u88c5\u901f\u5ea6\u66f4\u5feb\uff0c\u56e0\u4e3a\u5b83\u4e0d\u9700\u8981\u5728\u5b89\u88c5\u65f6\u8fdb\u884c\u7f16\u8bd1\u3002wheel\u5305\u662f\u9884\u7f16\u8bd1\u7684\uff0c\u5b89\u88c5\u8fc7\u7a0b\u53ea\u662f\u7b80\u5355\u5730\u5c06\u6587\u4ef6\u590d\u5236\u5230\u76ee\u6807\u76ee\u5f55\u3002<\/p>\n<\/p>\n<p><h4>2. \u66f4\u597d\u7684\u517c\u5bb9\u6027<\/h4>\n<\/p>\n<p><p>wheel\u5305\u5728\u4e0d\u540c\u7684\u5e73\u53f0\u4e0a\u5177\u6709\u66f4\u597d\u7684\u517c\u5bb9\u6027\u3002\u5b83\u4eec\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u64cd\u4f5c\u7cfb\u7edf\u548cPython\u7248\u672c\u4e4b\u95f4\u79fb\u690d\uff0c\u51cf\u5c11\u4e86\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<p><h4>3. \u66f4\u7b80\u5355\u7684\u4f9d\u8d56\u7ba1\u7406<\/h4>\n<\/p>\n<p><p>wheel\u5305\u53ef\u4ee5\u5305\u542b\u6240\u6709\u7684\u4f9d\u8d56\u9879\uff0c\u7b80\u5316\u4e86\u4f9d\u8d56\u7ba1\u7406\u3002\u4f60\u53ef\u4ee5\u5728\u521b\u5efawheel\u5305\u65f6\u6307\u5b9a\u4f9d\u8d56\u9879\uff0c\u786e\u4fdd\u7528\u6237\u5728\u5b89\u88c5\u65f6\u81ea\u52a8\u5b89\u88c5\u8fd9\u4e9b\u4f9d\u8d56\u9879\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u3001\u5e38\u89c1\u95ee\u9898\u53ca\u89e3\u51b3\u65b9\u6cd5<\/h3>\n<\/p>\n<p><h4>1. \u5b89\u88c5\u65f6\u627e\u4e0d\u5230wheel\u5305<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u5b89\u88c5\u65f6\u9047\u5230\u4ee5\u4e0b\u9519\u8bef\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">ERROR: Could not find a version that satisfies the requirement wheel<\/p>\n<p>ERROR: No matching distribution found for wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u662f\u56e0\u4e3a\u4f60\u7684pip\u7248\u672c\u592a\u65e7\uff0c\u65e0\u6cd5\u627e\u5230\u6700\u65b0\u7684wheel\u5305\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u66f4\u65b0pip\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install --upgrade pip<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u518d\u6b21\u5c1d\u8bd5\u5b89\u88c5wheel\u5305\u3002<\/p>\n<\/p>\n<p><h4>2. \u5b89\u88c5wheel\u5305\u65f6\u6743\u9650\u95ee\u9898<\/h4>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u5728\u5b89\u88c5wheel\u5305\u65f6\u9047\u5230\u6743\u9650\u95ee\u9898\uff0c\u53ef\u4ee5\u4f7f\u7528&#8211;user\u9009\u9879\u6765\u5b89\u88c5\u5230\u7528\u6237\u76ee\u5f55\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install wheel --user<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u4e0d\u9700\u8981\u7ba1\u7406\u5458\u6743\u9650\uff0c\u53ef\u4ee5\u5728\u7528\u6237\u76ee\u5f55\u4e0b\u5b89\u88c5wheel\u5305\u3002<\/p>\n<\/p>\n<p><h3>\u5341\u4e00\u3001\u4f7f\u7528wheel\u5305\u7684\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<p><h4>1. \u59cb\u7ec8\u4f7f\u7528\u865a\u62df\u73af\u5883<\/h4>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u4efb\u4f55\u5305\u4e4b\u524d\uff0c\u59cb\u7ec8\u5efa\u8bae\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883\u3002\u865a\u62df\u73af\u5883\u53ef\u4ee5\u9694\u79bb\u4f60\u7684\u9879\u76ee\u4f9d\u8d56\uff0c\u907f\u514d\u5305\u4e4b\u95f4\u7684\u51b2\u7a81\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u521b\u5efa\u548c\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\"># \u521b\u5efa\u865a\u62df\u73af\u5883<\/p>\n<p>python -m venv myenv<\/p>\n<h2><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff08Windows\uff09<\/strong><\/h2>\n<p>myenv\\Scripts\\activate<\/p>\n<h2><strong>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff08Mac\u548cLinux\uff09<\/strong><\/h2>\n<p>source myenv\/bin\/activate<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>2. \u5b9a\u671f\u66f4\u65b0pip\u548cwheel<\/h4>\n<\/p>\n<p><p>\u5b9a\u671f\u66f4\u65b0pip\u548cwheel\u53ef\u4ee5\u786e\u4fdd\u4f60\u4f7f\u7528\u7684\u662f\u6700\u65b0\u7248\u672c\uff0c\u4ece\u800c\u907f\u514d\u4e00\u4e9b\u5df2\u77e5\u7684\u95ee\u9898\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u66f4\u65b0pip\u548cwheel\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install --upgrade pip wheel<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>3. \u4f7f\u7528requirements.txt\u7ba1\u7406\u4f9d\u8d56<\/h4>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u9879\u76ee\u65f6\uff0c\u4f7f\u7528requirements.txt\u6587\u4ef6\u6765\u7ba1\u7406\u4f60\u7684\u4f9d\u8d56\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u751f\u6210requirements.txt\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip freeze &gt; requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u6765\u5b89\u88c5\u6240\u6709\u4f9d\u8d56\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u5341\u4e8c\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\u548c\u6700\u4f73\u5b9e\u8df5\uff0c\u4f60\u53ef\u4ee5\u5728Python\u4e2d\u987a\u5229\u5b89\u88c5\u548c\u4f7f\u7528wheel\u5305\u3002\u4f7f\u7528pip\u5b89\u88c5wheel\u5305\u662f\u6700\u5e38\u7528\u7684\u65b9\u6cd5\uff0c\u786e\u4fddpip\u5df2\u7ecf\u66f4\u65b0\u3001\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883\u3001\u68c0\u67e5\u4f9d\u8d56\u5173\u7cfb\u3001\u5b89\u88c5\u7279\u5b9a\u7248\u672c\u7684wheel\u5305\u4ee5\u53ca\u4e0b\u8f7d\u5e76\u5b89\u88c5wheel\u6587\u4ef6\u90fd\u662f\u5e38\u89c1\u7684\u64cd\u4f5c\u3002wheel\u5305\u5177\u6709\u66f4\u5feb\u7684\u5b89\u88c5\u901f\u5ea6\u3001\u66f4\u597d\u7684\u517c\u5bb9\u6027\u548c\u66f4\u7b80\u5355\u7684\u4f9d\u8d56\u7ba1\u7406\u7b49\u4f18\u70b9\uff0c\u53ef\u4ee5\u5927\u5927\u7b80\u5316Python\u5305\u7684\u5206\u53d1\u548c\u5b89\u88c5\u8fc7\u7a0b\u3002\u901a\u8fc7\u9075\u5faa\u6700\u4f73\u5b9e\u8df5\uff0c\u4f60\u53ef\u4ee5\u907f\u514d\u4e00\u4e9b\u5e38\u89c1\u7684\u95ee\u9898\uff0c\u63d0\u9ad8\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u4ec0\u4e48\u662fwheal\u5b89\u88c5\u5305\uff0c\u4e3a\u4ec0\u4e48\u8981\u4f7f\u7528\u5b83\uff1f<\/strong><br \/>wheal\u5b89\u88c5\u5305\u662f\u4e00\u79cdPython\u5305\u7684\u5206\u53d1\u683c\u5f0f\uff0c\u65e8\u5728\u7b80\u5316\u5b89\u88c5\u8fc7\u7a0b\u3002\u4e0e\u4f20\u7edf\u7684\u6e90\u4ee3\u7801\u5206\u53d1\u65b9\u5f0f\u76f8\u6bd4\uff0c\u4f7f\u7528wheal\u53ef\u4ee5\u66f4\u5feb\u5730\u5b89\u88c5Python\u5e93\uff0c\u56e0\u4e3a\u5b83\u4eec\u5df2\u7ecf\u7ecf\u8fc7\u7f16\u8bd1\u548c\u6253\u5305\u3002\u8fd9\u610f\u5473\u7740\u7528\u6237\u53ef\u4ee5\u907f\u514d\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9047\u5230\u4f9d\u8d56\u95ee\u9898\uff0c\u4ece\u800c\u8282\u7701\u65f6\u95f4\u548c\u7cbe\u529b\u3002<\/p>\n<p><strong>\u5982\u4f55\u67e5\u627e\u548c\u4e0b\u8f7dwheal\u5b89\u88c5\u5305\uff1f<\/strong><br \/>\u7528\u6237\u53ef\u4ee5\u901a\u8fc7Python\u5305\u7d22\u5f15\uff08PyPI\uff09\u6216\u5176\u4ed6\u5305\u7ba1\u7406\u5de5\u5177\uff08\u5982pip\uff09\u6765\u67e5\u627e\u548c\u4e0b\u8f7dwheal\u5b89\u88c5\u5305\u3002\u5728PyPI\u7f51\u7ad9\u4e0a\uff0c\u7528\u6237\u53ea\u9700\u641c\u7d22\u6240\u9700\u7684\u5e93\u540d\u79f0\uff0c\u627e\u5230\u5bf9\u5e94\u7684wheal\u6587\u4ef6\u5e76\u4e0b\u8f7d\u3002\u8fd8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u6267\u884c<code>pip install &lt;package-name&gt;<\/code>\uff0c\u5982\u679c\u8be5\u5e93\u652f\u6301wheal\u683c\u5f0f\uff0cpip\u4f1a\u81ea\u52a8\u9009\u62e9\u6700\u4f73\u7248\u672c\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p><strong>\u5728\u4f7f\u7528wheal\u5b89\u88c5\u5305\u65f6\uff0c\u662f\u5426\u9700\u8981\u6ce8\u610f\u517c\u5bb9\u6027\u95ee\u9898\uff1f<\/strong><br \/>\u786e\u5b9e\u9700\u8981\u5173\u6ce8\u517c\u5bb9\u6027\u95ee\u9898\u3002\u4e0d\u540c\u7684wheal\u5305\u53ef\u80fd\u662f\u4e3a\u4e0d\u540c\u7684Python\u7248\u672c\u6216\u64cd\u4f5c\u7cfb\u7edf\u6784\u5efa\u7684\u3002\u5728\u4e0b\u8f7d\u548c\u5b89\u88c5wheal\u5305\u4e4b\u524d\uff0c\u7528\u6237\u5e94\u786e\u4fdd\u6240\u4f7f\u7528\u7684Python\u73af\u5883\u4e0e\u5305\u7684\u8981\u6c42\u76f8\u5339\u914d\u3002\u6b64\u5916\uff0c\u67e5\u770b\u5305\u7684\u6587\u6863\u548c\u53d1\u5e03\u8bf4\u660e\u53ef\u4ee5\u5e2e\u52a9\u4e86\u89e3\u662f\u5426\u5b58\u5728\u5df2\u77e5\u7684\u517c\u5bb9\u6027\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Python\u4e2d\u5b89\u88c5wheel\u5305\uff0c\u53ef\u4ee5\u4f7f\u7528pip\u3001\u786e\u4fddpip\u5df2\u7ecf\u66f4\u65b0\u3001\u4f7f\u7528Python\u7684\u865a\u62df\u73af\u5883\u3001\u68c0\u67e5\u4f9d\u8d56\u5173 [&hellip;]","protected":false},"author":3,"featured_media":1178997,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1178990"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=1178990"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1178990\/revisions"}],"predecessor-version":[{"id":1178999,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1178990\/revisions\/1178999"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1178997"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1178990"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1178990"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1178990"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}