• <i id='g2BvA'><tr id='g2BvA'><dt id='g2BvA'><q id='g2BvA'><span id='g2BvA'><b id='g2BvA'><form id='g2BvA'><ins id='g2BvA'></ins><ul id='g2BvA'></ul><sub id='g2BvA'></sub></form><legend id='g2BvA'></legend><bdo id='g2BvA'><pre id='g2BvA'><center id='g2BvA'></center></pre></bdo></b><th id='g2BvA'></th></span></q></dt></tr></i><div id='g2BvA'><tfoot id='g2BvA'></tfoot><dl id='g2BvA'><fieldset id='g2BvA'></fieldset></dl></div>

        • <bdo id='g2BvA'></bdo><ul id='g2BvA'></ul>
      1. <small id='g2BvA'></small><noframes id='g2BvA'>

        <tfoot id='g2BvA'></tfoot>
        <legend id='g2BvA'><style id='g2BvA'><dir id='g2BvA'><q id='g2BvA'></q></dir></style></legend>

        如何使用 twine 将新版本的项目上传到 PyPI?

        时间:2023-09-13

        <i id='Gsgi8'><tr id='Gsgi8'><dt id='Gsgi8'><q id='Gsgi8'><span id='Gsgi8'><b id='Gsgi8'><form id='Gsgi8'><ins id='Gsgi8'></ins><ul id='Gsgi8'></ul><sub id='Gsgi8'></sub></form><legend id='Gsgi8'></legend><bdo id='Gsgi8'><pre id='Gsgi8'><center id='Gsgi8'></center></pre></bdo></b><th id='Gsgi8'></th></span></q></dt></tr></i><div id='Gsgi8'><tfoot id='Gsgi8'></tfoot><dl id='Gsgi8'><fieldset id='Gsgi8'></fieldset></dl></div>

          1. <legend id='Gsgi8'><style id='Gsgi8'><dir id='Gsgi8'><q id='Gsgi8'></q></dir></style></legend>
          2. <small id='Gsgi8'></small><noframes id='Gsgi8'>

            <tfoot id='Gsgi8'></tfoot>
                <tbody id='Gsgi8'></tbody>
                <bdo id='Gsgi8'></bdo><ul id='Gsgi8'></ul>

                1. 本文介绍了如何使用 twine 将新版本的项目上传到 PyPI?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我已将我的 Python 包上传到 PyPI.但现在我制作了我的包的新版本,需要上传它.我试图取得与第一次上传包时相同的进展.但是给我这个错误:

                  I've uploaded my Python package to PyPI. But now I made new version of my package and need to upload it. I tried to make same progress which I did when upload the package first time. but give me this error:

                  HTTPError: 400 Client Error: File already exists. See https://pypi.org/help/#file-name-reuse for url: https://upload.pypi.org/legacy
                  

                  现在,如何上传新版本没有任何错误?!

                  Now, how to upload new version without any error?!

                  推荐答案

                  PyPI 不允许重复使用分发文件名(项目名称+版本号+分发类型).

                  PyPI does not allow for the reuse of distribution filenames (project name + version number + distribution type).

                  这可确保给定项目的给定版本的给定发行版将始终解析为相同的文件,并且不会在某一天被项目维护者或恶意方偷偷更改(只能将其删除).

                  This ensures that a given distribution for a given release for a given project will always resolve to the same file, and cannot be surreptitiously changed one day by the projects maintainer or a malicious party (it can only be removed).

                  您需要将版本号更改为您之前未上传到 PyPI 的版本号.

                  You will need to change the version number to one that you haven't previously uploaded to PyPI.

                  您没有提及您是如何上传分发的,但如果您使用的是 twine,那么您也有可能尝试重新上传之前上传的分发.要解决此问题,您可以这样做:

                  You didn't mention how you're uploading the distribution, but if you're using twine, it's also possible you're attempting to re-upload a previously uploaded distribution. To resolve this, you can do:

                  $ twine upload --skip-existing dist/*
                  

                  这篇关于如何使用 twine 将新版本的项目上传到 PyPI?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:为什么从 git repo 进行 pip 安装时 #egg=foo 下一篇:检查要求是否是最新的

                  相关文章

                  最新文章

                    <bdo id='USP8a'></bdo><ul id='USP8a'></ul>
                  <tfoot id='USP8a'></tfoot>
                2. <legend id='USP8a'><style id='USP8a'><dir id='USP8a'><q id='USP8a'></q></dir></style></legend>
                3. <small id='USP8a'></small><noframes id='USP8a'>

                    1. <i id='USP8a'><tr id='USP8a'><dt id='USP8a'><q id='USP8a'><span id='USP8a'><b id='USP8a'><form id='USP8a'><ins id='USP8a'></ins><ul id='USP8a'></ul><sub id='USP8a'></sub></form><legend id='USP8a'></legend><bdo id='USP8a'><pre id='USP8a'><center id='USP8a'></center></pre></bdo></b><th id='USP8a'></th></span></q></dt></tr></i><div id='USP8a'><tfoot id='USP8a'></tfoot><dl id='USP8a'><fieldset id='USP8a'></fieldset></dl></div>