Python——python3的requests模塊的導入

前言

忽然就要搞python,我這個心哦~python

版本 | python 3.7spa

步驟

配置環境變量

右擊--》屬性--》打開文件位置code

進入到腳本目錄: C:\Users\Administrator.KING\AppData\Local\Programs\Python\Python37\Scriptsblog

複製地址欄上的地址並寫入到環境變量中!ip

否則安裝request模塊時候會報錯!cmd

 

安裝

打開cmd並cd到script目錄requests

cd C:\Users\Administrator.KING\AppData\Local\Programs\Python\Python37\Scripts

 

安裝pip

pip install requests

 

安裝完成class

相關文章
相關標籤/搜索