<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>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # Python Development Guidelines > 原文:[https://docs.gitlab.com/ee/development/python_guide/](https://docs.gitlab.com/ee/development/python_guide/) * [Installation](#installation) * [macOS](#macos) * [Linux](#linux) * [Shell integration](#shell-integration) * [Dependency management](#dependency-management) * [Use instructions](#use-instructions) # Python Development Guidelines[](#python-development-guidelines "Permalink") GitLab requires Python as a dependency for [reStructuredText](https://docutils.sourceforge.io/rst.html) markup rendering. 從 GitLab 11.10 開始,我們需要 Python 3. ## Installation[](#installation "Permalink") 有幾種方法可以在系統上安裝 Python. 為了能夠使用生產中使用的相同版本,建議您使用[pyenv](https://github.com/pyenv/pyenv) . 它的工作方式和行為與 Ruby 世界中的[同類產品 rbenv 相似](https://github.com/rbenv/rbenv) . ### macOS[](#macos "Permalink") 要在 macOS 上安裝`pyenv` ,可以將[Homebrew](https://brew.sh/)與以下軟件配合使用: ``` brew install pyenv ``` ### Linux[](#linux "Permalink") 要在 Linux 上安裝`pyenv` ,您可以運行以下命令: ``` curl https://pyenv.run | bash ``` 另外,您可以通過發行版軟件包管理器找到`pyenv`作為系統軟件包. 您可以在以下[網址](https://github.com/pyenv/pyenv-installer#prerequisites)了解更多信息: [https](https://github.com/pyenv/pyenv-installer#prerequisites) : [//github.com/pyenv/pyenv-installer#prerequisites](https://github.com/pyenv/pyenv-installer#prerequisites) . ### Shell integration[](#shell-integration "Permalink") Pyenv 安裝會將必需的更改添加到 Bash. 如果使用其他外殼,請檢查是否需要其他步驟. 對于 Fish,您可以為[Fisher](https://github.com/jorgebucaran/fisher)安裝插件: ``` fisher add fisherman/pyenv ``` 還是為了[我的魚](https://github.com/oh-my-fish/oh-my-fish) : ``` omf install pyenv ``` ## Dependency management[](#dependency-management "Permalink") 盡管 GitLab 不直接包含任何 Python 腳本,但是由于我們依賴 Python 來呈現[reStructuredText](https://docutils.sourceforge.io/rst.html)標記,因此我們需要在主項目級別上跟蹤依賴項,以便可以在開發機器上運行它. 最近,Python 引入了與`Gemfile`和[Bundler](https://bundler.io/)項目等效的項目: `Pipfile`和[Pipenv](https://pipenv.readthedocs.io/en/latest/) . 現在,您將在根文件夾中找到具有相關性的`Pipfile` . 要安裝它們,請運行: ``` pipenv install ``` 運行此命令將安裝所需的 Python 版本以及所需的 pip 依賴項. ## Use instructions[](#use-instructions "Permalink") 要在 Pipenv 環境下運行任何 Python 代碼,您需要首先根據應用程序的依賴關系啟動`virtualenv` . 使用 Pipenv,運行起來很簡單: ``` pipenv shell ``` 運行該命令后,您可以在同一外殼上運行 GitLab,它將使用從`pipenv install`命令安裝的 Python 和依賴項.
                  <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>

                              哎呀哎呀视频在线观看