I try to set up project interpteter Python 3.5 in Pycharm and get an SDK error
A fix for this issue, is tell to the global var named-> LD_LIBRARY_PATH to include the new python libraries compiled. Let's assume that you have just download python, extracted it & installed; assume that you have downloaded the 3.6.4 version
For include the library, you have to edit your .bashrc file. (This file is quite interesting, have a look ;) ). This file is an "hidden file" placed in your home:
nano ~/.bashrc
is a quite easy text editor.
Go at the end of the file and append this command, replacing your path of new python
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/whoami
/Downloads/Python-3.6.4
CTRL+X for save file.
For load the new file:
source ~/.bashrc