
import requests # requests 라이브러리 설치 필요
r = requests.get('http://spartacodingclub.shop/sparta_api/seoulair')
rjson = r.json()
print(rjson)
그대로 입력한 것 같은데 실행을 하니 다음과 같은 창이 떠요
"C:\Users\82108\OneDrive\바탕 화면\sparta\pythonProject\venv\Scripts\python.exe" "C:/Users/82108/OneDrive/바탕 화면/sparta/pythonProject/hello.py"
Traceback (most recent call last):
File "C:/Users/82108/OneDrive/바탕 화면/sparta/pythonProject/hello.py", line 1, in <module>
import requests # requests 라이브러리 설치 필요
ModuleNotFoundError: No module named 'requests'
종료 코드 1(으)로 완료된 프로세스
