The short and dirty answer is, inside Pycharm / Spyder / any python IDE, there is a setting "Project Interpreter", which is pointing to a python.exe in a folder such as C:\python27\python.exe
You need to update this setting to point to a place such as:
C:\Program Files\ArcGIS\Pro\bin\Python\python.exe