Pylinac won't work on PyCharm

I’m trying to use PyCharm with Pylinac. Pylinac is a part of the python packages. My contains:

from pylinac import Starshot
When I run it, I get the errors below. What could it be?

Thank you very much,
Traceback (most recent call last):
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\”, line 7, in
from pylinac import Starshot
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\venv\lib\site-packages\”, line 12, in
from pylinac.ct import CatPhan504, CatPhan600, CatPhan503, CatPhan604
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\venv\lib\site-packages\pylinac\”, line 29, in
from .core import image
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\venv\lib\site-packages\pylinac\core\”, line 20, in
from .utilities import is_close
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\venv\lib\site-packages\pylinac\core\”, line 14, in
from .typing import NumberLike
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\venv\lib\site-packages\pylinac\core\”, line 6, in
NumberLike = Union[int, np.float, float]
File “C:\Users\eli.furhang\PycharmProjects\pythonProject1\venv\lib\site-packages\”, line 319, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module ‘numpy’ has no attribute ‘float’.
np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:

Process finished with exit code 1

What version of pylinac are you using? This was fixed in July 2021: warning/small fixes · jrkerns/pylinac@8de1b54 · GitHub
You can find the version by doing:
import pylinac