Cannot install openpyxl

Hi, I’m trying to install openpyxl from pypi.org for a project with Excel files. I’ve typed pip install openpyxl in the terminal and installed it sucessfully. I have then import it with import openpyxl as xl. But when I run it I get the following error:

Traceback (most recent call last):
File “F:\backup.desktop\Bogdan\Python\automation xsl.py”, line 3, in
import openpyxl as xl
ModuleNotFoundError: No module named ‘openpyxl’

Process finished with exit code 1

I checked the External Libraries\Python 3.10\ site packages, where it should be and indeed it’s not there. But if I try to install it again I get the following message on the terminal:

PS C:\Users\Ioana\PycharmProjects\pythonProject> pip install openpyxl
Requirement already satisfied: openpyxl in c:\users\ioana\appdata\local\programs\python\python310\lib\site-packages (3.0.10)
Requirement already satisfied: et-xmlfile in c:\users\ioana\appdata\local\programs\python\python310\lib\site-packages (from openpyxl) (1.1.0)

It says it’s already there. Any ideas?