<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 安裝 Python MySQLdb > 原文: [https://thepythonguru.com/installing-mysqldb/](https://thepythonguru.com/installing-mysqldb/) * * * 于 2020 年 1 月 7 日更新 * * * MySQLdb 是用于使用 python 訪問 MySQL 數據庫的 api。 它建立在 MySQL C API 之上。 MySQLdb 尚不支持 python 3,它僅支持 python 2.4-2.7。 因此,您需要在本教程中使用 python 2。 我們將使用 python 2.7.9,您可以從此處下載。 ## 安裝 MySQLdb * * * 在安裝之前,必須首先檢查系統上是否已經安裝了 MySQLdb。 要測試打開命令提示符或終端,然后啟動 python shell 并鍵入以下代碼 ```py import MySQLdb ``` 如果它像這樣拋出`ImportError`: ![check-mysqldb-installation.png](https://img.kancloud.cn/2c/b4/2cb43c1838666d19febab390d3c65e7f_768x203.png) 那么您需要安裝 MySQLdb。 否則,您已經安裝了 MySQLdb。 如果您在 Windows 上,請[下載 MySQLdb 并安裝它](http://sourceforge.net/projects/mysql-python/)。 在下一篇文章中,我們將討論[如何連接到訪問數據庫](/connecting-to-the-database/)。 * * * * * *
                  <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>

                              哎呀哎呀视频在线观看