Код:
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'