JetBrains PyCharm Professional 2018.3
I had the same error in pycharm professional 2021.2 but I changed to 2021.1.3 and I was able to use my local terminal. Am not telling you install the one I used but I would suggest to try out other versions too not the one you are using and you see.
JetBrains PyCharm Professional 2018.3
041b061a72