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',

# Estimate Solar Position with the 'Location' object
solpos = site.get_solarposition(times)

# Visualize the resulting DataFrame

(default code from,Reda%20and%20Andreas%2C%202003)

Has anyone an idea? Thank you all in advance!

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum