You’re using the Python Console in PyCharm not the Terminal (Powershell).
At the bottom switch to the tab ‘Terminal’ two to the left and it should work.
And then ofc make shure you’re using the right interpreter and you are in the right directory (the line in front of the space where you type in the terminal). This should however be done automatically by PyCharm because IDEs are such nice tools
I am having this same issue even running on terminal.