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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # 如何在 Windows 中安裝 python > 原文: [https://javabeginnerstutorial.com/python-tutorial/how-to-install-python-in-windows/](https://javabeginnerstutorial.com/python-tutorial/how-to-install-python-in-windows/) 如果使用 Windows,則必須比使用類似 Unix 的系統(Linux,Mac)做更多的配置。 您唯一需要做的就是將 Python 和`pip`添加到`PATH`,以便通過命令行使用它。 這可以通過三種方式實現。 一種是臨時的,您編寫一個批處理腳本,每次您通過此腳本打開命令行時,該腳本都會啟動并設置`PATH`。 我不會更詳細地說明如何實現這一點,因為我認為這不是最好的方法,有時您想從自己所在的位置訪問 Python。 這兩個永久性解??決方案是相同的,唯一的區別是,在一個版本中,您必須手動執行相同的步驟,而另一個版本則需要自動執行。 自動版本是在安裝 Python 時選中“將 Python 3.5 添加到`PATH`”復選框。 這會自動在路徑中創建所需的條目,使您可以通過命令行訪問 Python。 另外,如果您選擇“自定義安裝”,您也可以選擇將 Python 添加到`PATH`中。 **在安裝過程中將 Python 添加到`PATH`** 第二個版本適用于那些錯過了上一步的人。 在這種情況下,您必須手動編輯路徑。 現在是以下步驟: 在 Windows 上打開“開始菜單”,然后選擇“控制面板”: ![Python installation in Windows Menu](https://img.kancloud.cn/0e/fb/0efb466889edb1e265f5507f57b1fbbe_357x436.png) **打開控制面板** 在“控制面板”中選擇“系統和安全性”: ![Python installation in Windows ](https://img.kancloud.cn/78/e7/78e741f354021cf96ea210f86786ea5f_564x231.png) **選擇系統和安全性** 在“系統和安全性”視圖中,選擇“系統”: ![Python installation in Windows System](https://img.kancloud.cn/74/f6/74f6d09e55e3de880de7adbe23e449f4_564x155.png) **選擇系統** 在“系統”視圖中,從左側選擇“高級系統設置”: ![Python installation in Windows Windows Control](https://img.kancloud.cn/b6/83/b68358ea52c716195d9df26e64e1093d_497x275.png) **單擊高級系統設置** 在“高級系統設置”窗口中,從底部選擇“環境變量…”: ![Python installation in Windows Advance](https://img.kancloud.cn/19/4c/194c12fee1e486e14ce8016bb6da62fc_541x471.png) **打開環境變量** 現在,您可以在窗口下部的“系統變量”中搜索“路徑”條目。 在這里,您應該選擇條目,然后單擊“編輯...”。 現在,將 Python 的安裝位置添加到該條目的末尾,并用分號將其與之前的條目分開。 例如,我將輸入以下內容: `C:\Python3\Scripts\; C:\Python3\` Python 安裝下的腳本文件夾包含點,因此將其也添加到路徑是明智的。 ![Python installation in Windows Env Variable](https://img.kancloud.cn/8e/df/8edf5ef0e77087a0df6bb81d37f9249d_564x463.png) **系統變量** 另外,您可以僅為您的用戶創建一個環境變量。 在這種情況下,在窗口的上部選擇“新建”,稱為“...的用戶變量”,然后添加一個新條目,其中變量設置為“`PATH`”,并且值是您安裝 Python 的位置 - 在上一步中。 ![Python installation in Windows Enviornment Variable](https://img.kancloud.cn/33/4e/334e3525d080a7abb99eedb2f064f72b_335x392.png) **用戶變量** 現在,如果您打開命令行并輸入 python ,您應該會看到類似以下命令提示符的內容: ![Python installation in Windows command prompt](https://img.kancloud.cn/3e/26/3e2615ae379a050e3ff28f3689c6a254_544x277.png) **使用 Python 的命令提示符** 就是這樣。 現在,您每次打開命令行即可訪問 Python。 如果要在其他平臺上安裝 python。 您可能希望在我們討論 [linux python 安裝的地方看到本文](https://javabeginnerstutorial.com/python-tutorial/python-setup-for-windows-mac-linux/)。 ### 參考文獻 * [適用于 Windows 的 Python 版本](https://www.python.org/downloads/windows/)
                  <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>

                              哎呀哎呀视频在线观看