{"id":309,"date":"2022-12-09T12:11:03","date_gmt":"2023-10-08T08:25:37","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/index.php\/2023\/11\/30\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/"},"modified":"2025-08-01T20:36:26","modified_gmt":"2025-08-01T12:36:26","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/","title":{"rendered":"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b"},"content":{"rendered":"<h3>\u5f15\u8a00<\/h3>\n<p>Poetry\u662f\u4e00\u4e2a\u7528\u4e8ePython\u7684\u4f9d\u8d56\u7ba1\u7406\u5668\uff0c\u5b83\u8fd8\u80fd\u591f\u6784\u5efa\u548c\u6253\u5305Python\u9879\u76ee\u4ee5\u4f9b\u5206\u53d1\u3002PyPI\u662f\u5b98\u65b9\u7684Python\u5305\u4e0a\u4f20\u548c\u4e0b\u8f7d\u4ed3\u5e93\uff0c\u5728\u672c\u6559\u7a0b\u4e2d\u5c06\u4f7f\u7528\u5b83\u3002\u5b83\u662fPython\u5305\u7684\u5b98\u65b9\u7b2c\u4e09\u65b9\u6765\u6e90\uff0c\u7531Python\u8f6f\u4ef6\u57fa\u91d1\u4f1a\u8fd0\u8425\u3002\u5728PyPI\u4e0a\u53d1\u5e03\u4f60\u7684\u5305\u4f7f\u5176\u516c\u5f00\u53ef\u4f9b\u81ea\u5df1\u6216\u4efb\u4f55\u5176\u4ed6\u4eba\u5b89\u88c5\u3002<\/p>\n<p>\u5728\u672c\u6559\u7a0b\u4e2d\uff0c\u4f60\u5c06\u521b\u5efa\u4e00\u4e2aPyPI\u5e10\u6237\uff0c\u901a\u8fc7\u8bbe\u7f6e\u4ee4\u724c\u8eab\u4efd\u9a8c\u8bc1\u4e0e\u4f60\u7684\u5e10\u6237\u8fde\u63a5\uff0c\u4ee5\u4fbf\u5728Poetry\u4e2d\u4f7f\u7528\u3002\u7136\u540e\u4f60\u5c06\u6784\u5efa\u5e76\u53d1\u5e03\u4f60\u7684\u6253\u5305\u9879\u76ee\u5230PyPI\u4e0a\u3002\u8fd9\u8fd8\u5c06\u4f7f\u4f60\u80fd\u591f\u5c06\u4f60\u53d1\u5e03\u7684\u8f6f\u4ef6\u5305\u4f5c\u4e3a\u5176\u4ed6Python\u9879\u76ee\u7684\u4f9d\u8d56\u9879\u6dfb\u52a0\u8fdb\u53bb\u3002<\/p>\n<h2>\u5148\u51b3\u6761\u4ef6<\/h2>\n<ul class=\"post-ul\">\n<li>\u4e00\u53f0Ubuntu 22.04\u670d\u52a1\u5668\uff0c\u6309\u7167\u6211\u4eec\u7684Ubuntu 22.04\u521d\u59cb\u670d\u52a1\u5668\u8bbe\u7f6e\u6307\u5357\u8fdb\u884c\u8bbe\u7f6e\uff0c\u5305\u62ec\u4e00\u4e2a\u5177\u6709sudo\u6743\u9650\u7684\u975eroot\u7528\u6237\u548c\u542f\u7528\u7684\u9632\u706b\u5899\u3002<\/li>\n<li>\u5728\u4f60\u7684\u673a\u5668\u4e0a\u5b89\u88c5\u4e86\u6700\u65b0\u7248\u672c\u7684Python 3\uff0c\u9075\u5faa\u5982\u4f55\u5728Ubuntu 22.04\u670d\u52a1\u5668\u4e0a\u5b89\u88c5Python 3\u5e76\u8bbe\u7f6e\u7f16\u7a0b\u73af\u5883\u7684\u7b2c1\u6b65\u3002<\/li>\n<li>\u5728\u4f60\u7684\u7cfb\u7edf\u4e0a\u5b89\u88c5\u4e86Poetry\uff0c\u9075\u5faa\u5982\u4f55\u5728Ubuntu 22.04\u4e0a\u5b89\u88c5Poetry\u6765\u7ba1\u7406Python\u4f9d\u8d56\u7684\u6307\u5357\u3002<\/li>\n<\/ul>\n<h2>\u7b2c\u4e00\u6b65 &#8211; \u521b\u5efa\u4e00\u4e2a PyPI \u8d26\u6237<\/h2>\n<p>\u4e3a\u4e86\u5c06\u8f6f\u4ef6\u5305\u53d1\u5e03\u5230PyPI\uff0c\u4f60\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u8d26\u6237\u3002\u6253\u5f00\u4f60\u7684\u7f51\u7edc\u6d4f\u89c8\u5668\u5e76\u8bbf\u95ee\u5b98\u65b9\u6ce8\u518c\u9875\u9762\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/7-0.png\" alt=\"PyPI\u6ce8\u518c\u9875\u9762\" \/><\/div>\n<p>\u63a5\u4e0b\u6765\uff0c\u4f60\u9700\u8981\u542f\u7528\u4ee4\u724c\u8eab\u4efd\u9a8c\u8bc1\uff0c\u4ee5\u4fbf\u5728Poetry\u4e2d\u5b89\u5168\u4f7f\u7528\u4f60\u7684PyPI\u51ed\u8bc1\u3002<\/p>\n<h2>\u7b2c\u4e8c\u6b65 &#8211; \u4e3aPyPI\u542f\u7528\u4ee4\u724c\u8eab\u4efd\u9a8c\u8bc1<\/h2>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528PyPI\u5e10\u6237\u7684\u63a8\u8350\u65b9\u5f0f\u662f\u4ee4\u724c\u9a8c\u8bc1\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u5355\u4e2a\u81ea\u52a8\u751f\u6210\u7684\u4ee4\u724c\u4ee3\u66ff\u7528\u6237\u540d\u548c\u5bc6\u7801\u3002\u4ee4\u724c\u53ef\u4ee5\u968f\u65f6\u6dfb\u52a0\u3001\u64a4\u9500\u6216\u6388\u4e88\u5bf9\u5e10\u6237\u7684\u7279\u5b9a\u8bbf\u95ee\u6743\u9650\u3002\u8fd9\u4f7f\u5f97\u4ee4\u724c\u66f4\u52a0\u5b89\u5168\uff0c\u5e76\u907f\u514d\u4e86\u5bc6\u7801\u88ab\u6cc4\u9732\u7684\u98ce\u9669\u3002\u4f60\u9700\u8981\u901a\u8fc7\u5bfc\u822a\u5230\u5e10\u6237\u8bbe\u7f6e\u6765\u4e3a\u4f60\u7684\u5e10\u6237\u521b\u5efa\u4e00\u4e2a\u65b0\u7684API\u4ee4\u724c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/11-0.png\" alt=\"PyPI\u8d26\u6237\u8bbe\u7f6e\" \/><\/div>\n<p>\u5411\u4e0b\u6eda\u52a8\u76f4\u5230\u4f60\u8fbe\u5230&#8221;API\u4ee4\u724c&#8221;\u90e8\u5206\u3002\u70b9\u51fb&#8221;\u6dfb\u52a0API\u4ee4\u724c&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/13-0.png\" alt=\"PyPI\u6dfb\u52a0API\u4ee4\u724c\" \/><\/div>\n<p>\u5728\u63a5\u4e0b\u6765\u7684\u9875\u9762\u4e0a\uff0c\u4f60\u53ef\u4ee5\u7ed9\u4f60\u7684\u4ee4\u724c\u547d\u540d\u3002\u672c\u6559\u7a0b\u5c06\u5176\u547d\u540d\u4e3a&#8221;Poetry&#8221;\uff0c\u4f46\u4f60\u53ef\u4ee5\u968f\u610f\u9009\u62e9\u4efb\u4f55\u4f60\u559c\u6b22\u7684\u540d\u5b57\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/15-0.png\" alt=\"PyPI API\u4ee4\u724c\u521b\u5efa\" \/><\/div>\n<p>\u4e00\u65e6\u4f60\u7684\u4ee4\u724c\u521b\u5efa\u6210\u529f\uff0c\u91cd\u8981\u7684\u662f\u5c06\u5176\u590d\u5236\uff0c\u56e0\u4e3a\u4ee4\u724c\u53ea\u4f1a\u663e\u793a\u4e00\u6b21\u3002\u8fd9\u662f\u4f7f\u7528\u5141\u8bb8\u4f60\u6839\u636e\u9700\u8981\u751f\u6210\u65b0\u4ee4\u724c\u7684API\u4ee4\u724c\u5e38\u89c1\u505a\u6cd5\uff0c\u6240\u4ee5\u8bf7\u5728\u7ee7\u7eed\u4e4b\u524d\u8bb0\u4e0b\u4f60\u7684\u4ee4\u724c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/17-0.png\" alt=\"PyPI\u590d\u5236\u8b66\u544a\" \/><\/div>\n<p>\u73b0\u5728\uff0c\u4f60\u5c06\u4f7f\u7528\u6b64\u4ee4\u724c\u5728Poetry\u4e2d\u914d\u7f6e\u4f60\u7684\u51ed\u636e\uff0c\u4ee5\u51c6\u5907\u53d1\u5e03\u3002\u4e0d\u8981\u518d\u5c06API\u4ee4\u724c\u9644\u52a0\u5230Poetry\u4e2d\u6240\u9700\u7684\u6bcf\u4e2a\u547d\u4ee4\u4e2d\uff0c\u800c\u662f\u53ea\u9700\u4f7f\u7528Poetry\u7684config\u547d\u4ee4\u8fdb\u884c\u4e00\u6b21\u64cd\u4f5c\u5373\u53ef\u3002<\/p>\n<p>\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5c06API\u4ee4\u724c\u6dfb\u52a0\u5230Poetry\u4e2d\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">poetry config pypi-token.pypi <mark>your-api-token<\/mark><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6dfb\u52a0\u4f60\u7684API\u4ee4\u724c\u4f5c\u4e3a\u4f60\u7684\u51ed\u636e\u540e\uff0cPoetry\u5c06\u4f1a\u901a\u77e5\u4f60\uff0c\u4f60\u7684\u51ed\u636e\u5df2\u5b58\u50a8\u5728\u4e00\u4e2a\u660e\u6587\u6587\u4ef6\u4e2d\u3002\u5982\u679c\u4f60\u5728\u4f7f\u7528\u4f20\u7edf\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u4f5c\u4e3a\u51ed\u636e\uff0c\u5219\u8fd9\u53ef\u80fd\u4f1a\u6210\u4e3a\u4e00\u4e2a\u95ee\u9898\u3002\u9274\u4e8e\u4ee4\u724c\u53ef\u4ee5\u8f7b\u677e\u5220\u9664\u548c\u66f4\u65b0\uff0c\u540c\u65f6\u4ee4\u724c\u4e5f\u662f\u968f\u673a\u751f\u6210\u5e76\u4e14\u552f\u4e00\u5bf9\u5e94\u4e8e\u5355\u4e2a\u7528\u4f8b\uff0c\u8fd9\u4f7f\u5f97\u5728\u6b64\u5904\u5b58\u50a8\u4ee4\u724c\u6210\u4e3a\u4e86\u65b9\u4fbf\u7684\u5b89\u5168\u6298\u8877\u3002\u6216\u8005\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u4e3a\u6bcf\u4e2a\u547d\u4ee4\u624b\u52a8\u8f93\u5165\u4f60\u7684API\u4ee4\u724c\u3002<\/p>\n<p>\u6709\u4e86\u8fd9\u4e2a\uff0c\u4f60\u5c31\u53ef\u4ee5\u5f00\u59cb\u6784\u5efa\u5e76\u53d1\u5e03\u4f60\u7684\u9879\u76ee\u4e86\u3002<\/p>\n<h2>\u7b2c\u4e09\u6b65 \u2014 \u6784\u5efa\u4f60\u7684\u9879\u76ee<\/h2>\n<p>\u6784\u5efa\u9879\u76ee\u5c31\u662f\u6253\u5305\u9879\u76ee\uff0c\u8fd9\u662f\u5728\u53d1\u5e03\u524d\u5fc5\u987b\u8fdb\u884c\u7684\u6b65\u9aa4\u3002\u8981\u6784\u5efa\u4f60\u7684\u9879\u76ee\uff0c\u8bf7\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre class=\"post-pre\"><code>poetry build<\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"\u8f93\u51fa\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code>Building sammy-poetry (0.1.0)\r\n- Building sdist\r\n- Built sammy-poetry-0.1.0.tar.gz\r\n- Building wheel\r\n- Built sammy_poetry-0.1.0-py3-none-any.whl<\/code><\/pre>\n<p>\u5c06\u8f93\u51fa\u4e24\u4e2a\u6587\u4ef6\u3002\u7b2c\u4e00\u4e2a\u662f\u6e90\u6587\u4ef6\uff08sdist\uff09\uff0c\u8f93\u51fa\u4e3atar.gz\u6587\u4ef6\u3002\u7b2c\u4e8c\u4e2a\u662f\u7f16\u8bd1\u540e\u7684\u5305\uff08wheel\uff09\uff0c\u8f93\u51fa\u4e3a.whl\u6587\u4ef6\u3002\u6709\u4e86\u8fd9\u4e9b\u6587\u4ef6\uff0c\u4f60\u73b0\u5728\u53ef\u4ee5\u5c06\u4f60\u7684Python\u5305\u53d1\u5e03\u5230PyPI\u4e86\u3002<\/p>\n<h2>\u7b2c\u56db\u6b65 &#8211; \u5c06\u4f60\u7684Python\u8f6f\u4ef6\u5305\u53d1\u5e03\u5230PyPI<\/h2>\n<p>PyPI\u662fPoetry\u7684\u9ed8\u8ba4\u53d1\u5e03\u76ee\u6807\u3002\u5982\u679c\u4f60\u7684\u8eab\u4efd\u9a8c\u8bc1API\u4ee4\u724c\u5df2\u7ecf\u51c6\u5907\u5c31\u7eea\uff0c\u4f60\u7684\u53d1\u5e03\u547d\u4ee4\u5c06\u65e0\u9700\u518d\u5305\u542b\u51ed\u636e\u3002<\/p>\n<p>\u8981\u53d1\u5e03\u4f60\u5df2\u7f16\u8bd1\u7684\u8f6f\u4ef6\u5305\uff0c\u8bf7\u8f93\u5165\u4ee5\u4e0b\u5185\u5bb9\uff1a<\/p>\n<pre class=\"post-pre\"><code>poetry publish<\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"\u8f93\u51fa\">\u8f93\u51fa<\/div>\n<pre class=\"post-pre\"><code>Publishing sammy-poetry (0.1.0) to PyPI\r\n- Uploading sammy-poetry-0.1.0.tar.gz 100%\r\n- Uploading sammy_poetry-0.1.0-py3-none-any.whl 100%<\/code><\/pre>\n<p>\u73b0\u5728\u4f60\u53ef\u4ee5\u68c0\u67e5\u4f60\u53d1\u5e03\u7684\u5305\u4e86\u3002\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u4f60\u7684PyPI\u9879\u76ee\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/34-0.png\" alt=\"PyPI\u4f60\u4e0a\u4f20\u7684\u8f6f\u4ef6\u5305\" \/><\/div>\n<p>\u4f60\u7684\u8f6f\u4ef6\u5305\u5df2\u53d1\u5e03\uff0c\u5e76\u5df2\u5728PyPI\u4e0a\u516c\u5f00\u53ef\u7528\uff0c\u540c\u65f6\u4e5f\u53ef\u4ee5\u901a\u8fc7Poetry\u4f5c\u4e3a\u4f9d\u8d56\u9879\u4f7f\u7528\u3002\u4f60\u53ef\u4ee5\u5c06\u81ea\u5df1\u53d1\u5e03\u7684\u8f6f\u4ef6\u5305\u6dfb\u52a0\u4e3a\u5176\u4ed6Python\u9879\u76ee\u7684\u4f9d\u8d56\u9879\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">\u6ce8\u610f<\/p>\n<div>\u6ce8\u610f\uff1a\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728\u53d1\u5e03\u547d\u4ee4\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u6807\u8bb0\uff0c\u4e00\u6b65\u5b8c\u6210\u6784\u5efa\u548c\u53d1\u5e03\u4f60\u7684\u5305\u5230PyPI\uff1a<br \/>\n<code>poetry publish --build<\/code><br \/>\n\u6839\u636e\u4f60\u7684\u9879\u76ee\u6210\u719f\u5ea6\u548c\u5de5\u4f5c\u6d41\u7a0b\uff0c\u8fd9\u6837\u505a\u53ef\u80fd\u66f4\u52a0\u9ad8\u6548\u3002<\/div>\n<\/div>\n<h2>\u7ed3\u8bba<\/h2>\n<p>\u5728\u8fd9\u4e2a\u6559\u7a0b\u4e2d\uff0c\u4f60\u4f7f\u7528Poetry\u6765\u8fdb\u884c\u6784\u5efa\u548c\u53d1\u5e03\u3002\u4f60\u521b\u5efa\u4e86\u4e00\u4e2aPyPI\u5e10\u6237\uff0c\u5728Poetry\u4e2d\u8bbe\u7f6e\u4e86API\u4ee4\u724c\u9a8c\u8bc1\uff0c\u7136\u540e\u5728\u53d1\u5e03\u4e4b\u524d\u7f16\u8bd1\u4e86\u4f60\u7684\u9879\u76ee\u3002\u4f60\u7684\u8f6f\u4ef6\u5305\u53ef\u4ee5\u4f5c\u4e3a\u516c\u5171\u4f9d\u8d56\u9879\u4f7f\u7528\uff0c\u751a\u81f3\u53ef\u4ee5\u901a\u8fc7Poetry\u5305\u542b\u4e3a\u4f9d\u8d56\u9879\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u4f60\u53ef\u80fd\u60f3\u901a\u8fc7\u67e5\u770b\u6211\u4eec\u7684Python\u7f16\u7a0b\u6559\u7a0b\u7cfb\u5217\u300a\u5982\u4f55\u4f7f\u7528Python\u7f16\u7801\u300b\u6765\u6df1\u5165\u4e86\u89e3Python\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00 Poetry\u662f\u4e00\u4e2a\u7528\u4e8ePython\u7684\u4f9d\u8d56\u7ba1\u7406\u5668\uff0c\u5b83\u8fd8\u80fd\u591f\u6784\u5efa\u548c\u6253\u5305Python\u9879\u76ee\u4ee5\u4f9b\u5206\u53d1\u3002PyPI\u662f\u5b98 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1077,1078,32,300,1079],"class_list":["post-309","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-poetry","tag-pypi","tag-python","tag-ubuntu-22-04","tag-1079"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u4f7f\u7528Poetry\u5de5\u5177\u5c06Python\u5305\u53d1\u5e03\u5230PyPI\u3002\u4ece\u73af\u5883\u914d\u7f6e\u5230\u9879\u76ee\u8bbe\u7f6e\uff0c\u518d\u5230\u6700\u7ec8\u7684\u53d1\u5e03\u6b65\u9aa4\uff0c\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210Python\u5305\u7684\u6574\u4e2a\u53d1\u5e03\u6d41\u7a0b\uff0c\u9002\u5408Python\u5f00\u53d1\u8005\u53c2\u8003\u5b66\u4e60\u3002\" \/>\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.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u4f7f\u7528poetry\u5c06python\u5305\u53d1\u5e03\u5230pypi\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b\" \/>\n<meta property=\"og:description\" content=\"\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u4f7f\u7528Poetry\u5de5\u5177\u5c06Python\u5305\u53d1\u5e03\u5230PyPI\u3002\u4ece\u73af\u5883\u914d\u7f6e\u5230\u9879\u76ee\u8bbe\u7f6e\uff0c\u518d\u5230\u6700\u7ec8\u7684\u53d1\u5e03\u6b65\u9aa4\uff0c\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210Python\u5305\u7684\u6574\u4e2a\u53d1\u5e03\u6d41\u7a0b\uff0c\u9002\u5408Python\u5f00\u53d1\u8005\u53c2\u8003\u5b66\u4e60\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u4f7f\u7528poetry\u5c06python\u5305\u53d1\u5e03\u5230pypi\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-08T08:25:37+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-01T12:36:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/7-0.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/\",\"name\":\"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-08T08:25:37+00:00\",\"dateModified\":\"2025-08-01T12:36:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"description\":\"\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u4f7f\u7528Poetry\u5de5\u5177\u5c06Python\u5305\u53d1\u5e03\u5230PyPI\u3002\u4ece\u73af\u5883\u914d\u7f6e\u5230\u9879\u76ee\u8bbe\u7f6e\uff0c\u518d\u5230\u6700\u7ec8\u7684\u53d1\u5e03\u6b65\u9aa4\uff0c\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210Python\u5305\u7684\u6574\u4e2a\u53d1\u5e03\u6d41\u7a0b\uff0c\u9002\u5408Python\u5f00\u53d1\u8005\u53c2\u8003\u5b66\u4e60\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud","description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u4f7f\u7528Poetry\u5de5\u5177\u5c06Python\u5305\u53d1\u5e03\u5230PyPI\u3002\u4ece\u73af\u5883\u914d\u7f6e\u5230\u9879\u76ee\u8bbe\u7f6e\uff0c\u518d\u5230\u6700\u7ec8\u7684\u53d1\u5e03\u6b65\u9aa4\uff0c\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210Python\u5305\u7684\u6574\u4e2a\u53d1\u5e03\u6d41\u7a0b\uff0c\u9002\u5408Python\u5f00\u53d1\u8005\u53c2\u8003\u5b66\u4e60\u3002","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.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u4f7f\u7528poetry\u5c06python\u5305\u53d1\u5e03\u5230pypi\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b","og_description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u4f7f\u7528Poetry\u5de5\u5177\u5c06Python\u5305\u53d1\u5e03\u5230PyPI\u3002\u4ece\u73af\u5883\u914d\u7f6e\u5230\u9879\u76ee\u8bbe\u7f6e\uff0c\u518d\u5230\u6700\u7ec8\u7684\u53d1\u5e03\u6b65\u9aa4\uff0c\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210Python\u5305\u7684\u6574\u4e2a\u53d1\u5e03\u6d41\u7a0b\uff0c\u9002\u5408Python\u5f00\u53d1\u8005\u53c2\u8003\u5b66\u4e60\u3002","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5982\u4f55\u5728ubuntu-22-04\u4e0a\u4f7f\u7528poetry\u5c06python\u5305\u53d1\u5e03\u5230pypi\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-08T08:25:37+00:00","article_modified_time":"2025-08-01T12:36:26+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/65646287a4b2f92e6c7250dd\/7-0.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/","name":"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-08T08:25:37+00:00","dateModified":"2025-08-01T12:36:26+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"description":"\u672c\u6559\u7a0b\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728Ubuntu 22.04\u7cfb\u7edf\u4e0a\u4f7f\u7528Poetry\u5de5\u5177\u5c06Python\u5305\u53d1\u5e03\u5230PyPI\u3002\u4ece\u73af\u5883\u914d\u7f6e\u5230\u9879\u76ee\u8bbe\u7f6e\uff0c\u518d\u5230\u6700\u7ec8\u7684\u53d1\u5e03\u6b65\u9aa4\uff0c\u6211\u4eec\u5c06\u4e00\u6b65\u6b65\u6307\u5bfc\u60a8\u5b8c\u6210Python\u5305\u7684\u6574\u4e2a\u53d1\u5e03\u6d41\u7a0b\uff0c\u9002\u5408Python\u5f00\u53d1\u8005\u53c2\u8003\u5b66\u4e60\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 22.04\u4f7f\u7528Poetry\u53d1\u5e03Python\u5305\u5230PyPI\u5b8c\u6574\u6559\u7a0b"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%a6%82%e4%bd%95%e5%9c%a8ubuntu-22-04%e4%b8%8a%e4%bd%bf%e7%94%a8poetry%e5%b0%86python%e5%8c%85%e5%8f%91%e5%b8%83%e5%88%b0pypi%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/309","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=309"}],"version-history":[{"count":3,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/309\/revisions"}],"predecessor-version":[{"id":109801,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/309\/revisions\/109801"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=309"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=309"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=309"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}