I've installed numpy and scipy via pip into ~/.local/lib/python3.8/site-packages. In the normal system terminal, importing numpy works. Then I tried it to use in Pycharm:
I've added the folder to the interpreter paths, which then shows up in the "external libraries" correctly. Intellisense in editor does also work when I import the numpy package. BUT: the directory is not in the python path and importing doesn't work when I run the code. See following screenshot:
Secondly, I tried to add this path in the project structure as "Source", which makes some kind of reference inside the project, but importing still doesn't work:
As a third attempt, I added the folder manually inside the script, which works:
However, attempt 3 is an annoying workaround. I don't understand why attempt 1 + 2 don't work. Any ideas?
Pycharm Version: 2020.02
System: Linux Mint 20
Many Thanks in advance!