Answer the question
In order to leave comments, you need to log in
What is the problem with pyowm?
The code:
import pyowm
owm = pyowm.OWM("a69f2b4e45869e5efa459f47b2389c69")
place = input(">> ")
observation = owm.weather_manager().weather_at_place(place)
w = observation.get_weather()
temp = w.get_temperature("celsius")["temp"]
print("В городе " + place + " сейчас " + w.get_detailed_status())
print("Температура >> " + str(temp))
Traceback (most recent call last):
File "C:\Python\Weather\main.py", line 8, in <module>
w = observation.get_weather()
AttributeError: 'Observation' object has no attribute 'get_weather'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question