Всем привет, помогите начинающему кодеру
Windows 10
Устанавливаю модуль по
инструкции
pip install pyowm
пишет:
Requirement already satisfied: pyowm in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (2.10.0)
Requirement already satisfied: geojson<3,>=2.3.0 in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (from pyowm) (2.4.1)
Requirement already satisfied: requests<3,>=2.20.0 in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (from pyowm) (2.22.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (from requests<3,>=2.20.0->pyowm) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (from requests<3,>=2.20.0->pyowm) (1.25.3)
Requirement already satisfied: idna<2.9,>=2.5 in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (from requests<3,>=2.20.0->pyowm) (2.8)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\ave\appdata\local\programs\python\python37-32\lib\site-packages (from requests<3,>=2.20.0->pyowm) (2019.6.16)
Код в файле программы:
import pyowm
owm = pyowm.OWM('2265e7528feb74505afb8cfb36867097') # api key с сайта openweathermap.org
place = input("В каком городе/стране?: ") # Пользователь вводит город в импут
# Search for current weather in London (Great Britain)
observation = owm.weather_at_place('London,GB')
w = observation.get_weather()
print(w)
запуск программы:
$ C:\python\weather.py
Traceback (most recent call last):
File "C:\python\weather.py", line 1, in <module>
import pyowm
ModuleNotFoundError: No module named 'pyowm'