一、下載Python3
官網地址:www.python.org
當前最新版本爲Python 3.7.3。python
Windows下有個6個下載連接
Windows x86-64 embeddable zip file
Windows x86-64 executable installer
Windows x86-64 web-based installer
Windows x86 embeddable zip file Windows
Windows x86 executable installer
Windows x86 web-based installerweb
說明:
(1)x86-64適用於64位操做系統、x86適用於32位操做系統;
(2)embeddable zip、executable installer、web-based installer區別
embeddable zip: 下載的是一個壓縮文件,解壓後即表示安裝完成。
executable installer: 下載的是一個幾十MB的exe可執行程序,離線安裝。
web-based installer: zip 下載的是一個幾MB的exe可執行程序,須要聯網安裝。
3種方式最終都是同樣的。
本人選擇的是Windows x86-64 executable installer。阿里雲
二、安裝Python3
安裝時勾選Add Python 3.7 to PATH,表示在環境變量path添加python的安裝路徑。操作系統
三、在cmd命令行下查看Python命令,會顯示版本號等信息命令行
C:\Users\gdjlc>python Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD6 4)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>
四、開始菜單->程序->Pyhone3.7的四個選項說明3d
(1)IDLE(Pythone 3.7 64-bit)
Python集成開發環境
(2)Python 3.7(64-bit)
Python的命令提示窗口,和在cmd命令行下輸入python同樣
(3)Python 3.7 Manuals(64-bit)
Python的所有文檔
(4)Python 3.7 Manuals Docs(64-bit)
Python系統中可用的全部已安裝模塊的文檔code
五、解決pip安裝模塊慢的問題orm
若是pip安裝模塊很慢,能夠臨時改成使用國內pip源安裝。
(1)國內pip源:
清華:https://pypi.tuna.tsinghua.edu.cn/simple
阿里雲:https://mirrors.aliyun.com/pypi/simple
中國科技大學 https://pypi.mirrors.ustc.edu.cn/simple
豆瓣:https://pypi.douban.com/simple
(2)臨時使用
格式爲:pip install -i 國內源網址 模塊名
例如:pip install -i https://pypi.tuna.tsinghua.edu.cn/simple face_recognitionblog