安裝python、pip以及通過pip安裝第三方模塊

1.安裝python:下載網址https://www.python.org/

2. 下載安裝到默認/指定路徑位置:配置環境變量。如:C:\Users\princ\AppData\Local\Programs\Python\Python37。

3. 查詢python是否安裝成功:輸入指令cmd->python。

4. 查詢python安裝的位置:輸入指令where python。

5. 查詢是否安裝pip:Python3以上,安裝的適合,默認帶安裝pip。查看:C:\Users\princ\AppData\Local\Programs\Python\Python37\Scripts下

6. 通過pip安裝第三方模塊:進入C:\Users\princ\AppData\Local\Programs\Python\Python37\Scripts的命令行。輸入pip/pip3查看是否安裝成功pip/pip3。

       安裝成功pip/pip3後,即可安裝第三方模塊:如pip/pip3 install request。

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章