參加課程:使用 Python 與作業系統互動。我的視力很差,所以我試圖在 Windows 10 上安裝一些 python 東西(請參見下文),這樣我就可以在家編輯和運行一些檔案。
如何找到并安裝 python3-requests?
PS D:\ray\goapps\code4> C:\Users\raz\AppData\Local\Programs\Python\Python310/Scripts/pip3.exe install python3-requests
ERROR: Could not find a version that satisfies the requirement python3-requests (from versions: none)
ERROR: No matching distribution found for python3-requests
[notice] A new release of pip available: 22.2.1 -> 22.3
[notice] To update, run: C:\Users\raz\AppData\Local\Programs\Python\Python310\python.exe -m pip install --upgrade pip
PS D:\ray\goapps\code4>
uj5u.com熱心網友回復:
只需通過在搜索欄中輸入 cmd 進入命令列并準確輸入pip install requests,這應該可以從那里作業,您可以在 python 檔案的頂部使用匯入請求并使用庫。
轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/518623.html
