file——>setting——>Project——>Project Interpreters
Project Interpreters drop-down selection you want to use local pyhon.exe
Click ok to
ps My version is pycharm
PyCharm 2019.2.3 (Professional Edition)
Build #PY-192.6817.19, built on September 25, 2019
This step is practical to set the local environment running no configuration other