No module named 'pvlib.location'; 'pvlib' is not a package
i want to use the
pvlib-package in PyCharm. So I went to PyCharm-Packages and installed the
pvlib-package (I also tried older versions). Unfortunatly I always get the error:
ModuleNotFoundError: No module named 'pvlib.location'; 'pvlib' is not a package
I really do not get it. My Code looks like this:
# Libraries import numpy as np import pandas as pd import matplotlib.pyplot as plt import pvlib from pvlib.location import Location # Definition of Location oject. Coordinates and elevation of Madrid Ciemat Headquarters (Spain) site = Location(40.456, -3.73, 'Etc/GMT+1', 651, 'Ciemat (Madrid, ES)') # latitude, longitude, time_zone, altitude, name # Definition of a time range of simulation times = pd.date_range('2018-01-01 00:00:00', '2018-12-31 23:59:00', closed='left', freq='H', tz=site.tz) # Estimate Solar Position with the 'Location' object solpos = site.get_solarposition(times) # Visualize the resulting DataFrame solpos.head()
Has anyone an idea? Thank you all in advance!