<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](../installing/index.xhtml "安裝 Python 模塊") | - [上一頁](../c-api/apiabiversion.xhtml "API 和 ABI 版本管理") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - $('.inline-search').show(0); | # 分發 Python 模塊 電子郵箱[distutils-sig@python.org](mailto:distutils-sig%40python.org) 作為一個流行的開源開發項目,Python擁有一個活躍的貢獻者和用戶支持社區,這些社區也可以讓他們的軟件可供其他Python開發人員在開源許可條款下使用。 這允許Python用戶有效地共享和協作,從其他人已經創建的解決方案中受益于常見(有時甚至是罕見的)問題,以及可以提供他們自己的解決方案。 本指南涵蓋了分發部分的流程。有關安裝其他Python項目的指南,請參閱 [安裝指南](../installing/index.xhtml#installing-index)。 注解 對于企業和其他機構用戶,請注意許多組織都有自己的政策來使用和貢獻開源軟件。在使用Python提供的分發和安裝工具時,請考慮這些政策。 ## 關鍵術語 - [Python Packaging Index](https://pypi.org) \[https://pypi.org\] 是一個開源許可的軟件包公共存儲庫,可供所有 Python 用戶使用。 - [Python Packaging Authority](https://www.pypa.io/) \[https://www.pypa.io/\] 是負責標準打包工具的維護和發展以及相關元數據和文件格式標準的開發人員和文檔作者小組。他們在 [GitHub](https://github.com/pypa) \[https://github.com/pypa\] 和 [BitBucket](https://bitbucket.org/pypa/) \[https://bitbucket.org/pypa/\] 上維護著各種工具,文檔和問題跟蹤器。 - [`distutils`](../library/distutils.xhtml#module-distutils "distutils: Support for building and installing Python modules into an existing Python installation.") 是1998年首次添加到Python標準庫的原始構建和分發系統。雖然直接使用 [`distutils`](../library/distutils.xhtml#module-distutils "distutils: Support for building and installing Python modules into an existing Python installation.") 正在逐步淘汰,但它仍然為當前的打包和分發基礎架構奠定了基礎它不僅仍然是標準庫的一部分,而且它的名稱還以其他方式存在(例如用于協調Python包裝標準開發的郵件列表的名稱)。 - [setuptools](https://setuptools.readthedocs.io/en/latest/) \[https://setuptools.readthedocs.io/en/latest/\] (在很大程序上)是作為 [`distutils`](../library/distutils.xhtml#module-distutils "distutils: Support for building and installing Python modules into an existing Python installation.") 的取代者,于 2004 年首次發布。它對未經修改的 [`distutils`](../library/distutils.xhtml#module-distutils "distutils: Support for building and installing Python modules into an existing Python installation.") 工具最重要的補充是能夠聲明對其他包的依賴。目前它被推薦用來替代 [`distutils`](../library/distutils.xhtml#module-distutils "distutils: Support for building and installing Python modules into an existing Python installation."),其更新更為頻繁,在更為多樣的 Python 版本之上為最新的包標準提供持續支持。 - [wheel](https://wheel.readthedocs.io/) \[https://wheel.readthedocs.io/\] (在此上下文中)是一個將 `bdist_wheel` 命令添加到 [`distutils`](../library/distutils.xhtml#module-distutils "distutils: Support for building and installing Python modules into an existing Python installation.")/[setuptools](https://setuptools.readthedocs.io/en/latest/) \[https://setuptools.readthedocs.io/en/latest/\] 的項目。這產生了一個跨平臺的二進制打包格式(稱為“輪子”或“輪子文件”,并在 [**PEP 427**](https://www.python.org/dev/peps/pep-0427) \[https://www.python.org/dev/peps/pep-0427\] 中定義),它允許在系統上安裝Python庫,甚至包括二進制擴展的庫,而不需在本地進行構建。 ## 開源許可與協作 在世界上大多數地方,軟件自動受版權保護。這意味著其他開發人員需要明確的權限來復制,使用,修改和重新分發軟件。 開源許可是一種以相對一致的方式明確授予此類權限的方式,允許開發人員通過為各種問題免費提供通用解決方案來有效地共享和協作。這使得許多開發人員可以將更多時間用于關注他們特定情況相對獨特的問題。 Python提供的分發工具旨在使開發人員選擇開源時,可以合理地直接將其自己的貢獻回饋到該公共軟件池。 無論該軟件是否作為開源軟件發布,相同的分發工具也可用于在組織內分發軟件。 ## 安裝工具 標準庫不包括支持現代Python打包標準的構建工具,因為核心開發團隊已經發現,即使在舊版本的Python上,使用一致工作的標準工具也很重要。 可以通過在命令行調用 `pip` 模塊來安裝當前推薦的構建和分發工具: ``` python -m pip install setuptools wheel twine ``` 注解 對于POSIX用戶(包括Mac OS X和Linux用戶),這些說明假定使用 [virtual environment](../glossary.xhtml#term-virtual-environment) 。 對于Windows用戶,這些說明假定在安裝Python時選擇了調整系統PATH環境變量的選項。 Python打包用戶指南包含有關 [currently recommended tools](https://packaging.python.org/guides/tool-recommendations/#packaging-tool-recommendations) \[https://packaging.python.org/guides/tool-recommendations/#packaging-tool-recommendations\] 的更多詳細信息。 ## 閱讀指南 Python打包指南介紹了創建項目所涉及的各個關鍵步驟和元素: - [項目的結構](https://packaging.python.org/tutorials/distributing-packages/) - [項目的構建與打包](https://packaging.python.org/tutorials/distributing-packages/#packaging-your-project) - [上傳項目到 Python Packaging Index](https://packaging.python.org/tutorials/distributing-packages/#uploading-your-project-to-pypi) ## 我該如何...? 這是一些常見任務的快速解答或相關鏈接。 ### ...為我的項目選擇一個名字? 這不是一個簡單的主題,但這里有一些提示: - 檢查Python Packaging Index以查看該名稱是否已被使用 - 檢查流行的托管網站,如GitHub,BitBucket等,看看是否已經有一個具有該名稱的項目 - 檢查您正在考慮的名稱在網絡搜索中出現的內容 - 避免使用特別常見的單詞,尤其是具有多重含義的單詞,因為它們會使用戶在搜索時難以找到您的軟件 ### ...創建和分發二進制擴展? 這實際上是一個非常復雜的主題,根據您的目標,可以提供各種替代方案。有關更多信息和建議,請參閱Python打包指南。 參見 [Python 封裝使用指南:二進制擴展](https://packaging.python.org/guides/packaging-binary-extensions/) \[https://packaging.python.org/guides/packaging-binary-extensions/\] ### 導航 - [索引](../genindex.xhtml "總目錄") - [模塊](../py-modindex.xhtml "Python 模塊索引") | - [下一頁](../installing/index.xhtml "安裝 Python 模塊") | - [上一頁](../c-api/apiabiversion.xhtml "API 和 ABI 版本管理") | - ![](https://box.kancloud.cn/a721fc7ec672275e257bbbfde49a4d4e_16x16.png) - [Python](https://www.python.org/) ? - zh\_CN 3.7.3 [文檔](../index.xhtml) ? - $('.inline-search').show(0); | ? [版權所有](../copyright.xhtml) 2001-2019, Python Software Foundation. Python 軟件基金會是一個非盈利組織。 [請捐助。](https://www.python.org/psf/donations/) 最后更新于 5月 21, 2019. [發現了問題](../bugs.xhtml)? 使用[Sphinx](http://sphinx.pocoo.org/)1.8.4 創建。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看