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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # 使用 PIP 在 python 中安裝包 > 原文: [https://thepythonguru.com/installing-packages-in-python-using-pip](https://thepythonguru.com/installing-packages-in-python-using-pip) * * * 于 2020 年 1 月 7 日更新 * * * PIP 是一個包管理系統,用于從存儲庫安裝包。 您可以使用`pip`安裝 [http://pypi.python.org/pypi](http://pypi.python.org/pypi) 上可用的各種包。 PIP 與 php 中的作曲家非常相似。 PIP 是遞歸的首字母縮寫,代表 PIP 安裝包。 ## 安裝 PIP * * * Python 2.7.9 及更高版本(python2 系列)和 Python 3.4 及更高版本(python 3 系列)已經帶有 pip。 要檢查您的 python 版本,您需要輸入以下命令: ```py python ?-V ``` 如果您的 python 版本不屬于上述任何版本,則需要手動安裝`pip`(請參見下面的鏈接)。 * [單擊此處以獲取 Windows 安裝說明](http://stackoverflow.com/questions/4750806/how-to-install-pip-on-windows)。 * [單擊此處以獲取 Linux 指南](https://pip.pypa.io/en/latest/installing.html)。 ## 安裝包 * * * 假設您要安裝一個名為 [Requests](https://pypi.python.org/pypi/requests/2.7.0) 的包(用于發出 HTTP 請求)。 您需要發出以下命令。 ```py pip install requests # this will install latest request package pip install requests==2.6.0 # this will install requests 2.6.0 package not the latest package pip install requests>=2.6.0 # specify a minimum version if it's not available pip will install the latest version ``` **注意**: `pip.exe`存儲在`C:\Python34\Scripts`下,因此您需要去那里安裝包。 或者,將整個路徑添加到`PATH`環境變量。 這樣,您可以從任何目錄訪問`pip`。 ## 卸載包 * * * 要卸載包,請使用以下命令。 ```py pip uninstall package_name ``` ## 升級包 * * * ```py pip install --upgrade package_name ``` ## 搜索包 * * * ```py pip search "your query" ``` **注意**: 您無需在搜索字詞前后添加引號。 ## 列出已安裝的包 * * * ```py pip list ``` 上面的命令將列出所有已安裝的包。 ## 列出過時的已安裝包 * * * ```py pip list --outdated ``` ## 有關已安裝包的詳細信息 * * * 您可以使用以下命令來獲取有關已安裝包的信息,即包名稱,版本,位置,依賴項。 ```py pip show package_name ``` * * * * * *
                  <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>

                              哎呀哎呀视频在线观看