On Linux Mint, Pycharm unable to see /usr/local/bin/
已回答
I'm on Linux Mint 19 Tara Xfce.
I installed Pycharm Community 2018.1.4 and it was working ok with the default python 3.5
Then, I installed Python 3.7
It is located at /usr/local/bin/
If I use the command: "which python3.7" the answer is "/usr/local/bin/python3.7"
In Pycharm, when I go to file/Settings/Project Interpreter/Add ... there is no /usr/local folder.
I can't set python 3.7 as interpreter from pycharm.
I can cd to /usr/local/bin folder in the terminal, but Pycharm just can't. I installed all the last Linux updates, restarted, uninstalled/reinstalled Pycharm, refreshed its inner browser, restarted my pc. Nothing changed.
What can I do ?
请先登录再写评论。
Hi, I believe the problem can be caused by permission, does the user you start PyCharm with has permission to browse /usr/local?
Hi Pavel, thank you for your answer.
I started using linux not long ago. So I tried to check the permission in the console:
namei -m /usr/local/bin
As an answer I got:
f: /usr/local/bin
drwxr-xr-x /
drwxr-xr-x usr
drwxr-xr-x local
drwxr-xr-x bin
Am I doing the right check ?
I have the same issue with the most recent version of pycharm on linux. Did this issue ever get resolved?
as explained here: https://stackoverflow.com/questions/64666783/pycharm-cannot-access-files-in-usr-lib-and-usr-bin https://stackoverflow.com/questions/64666783/pycharm-cannot-access-files-in-usr-lib-and-usr-bin
The inability to access /usr/local is related to pycharm installation as a flatpack app on Mint 20.
Download and run using pycharm.sh and issues should be gone.
Alternatively start pycharm installed as a flatpak app directly:
# /var/lib/flatpak/app/com.jetbrains.PyCharm-Community/x86_64/stable/active/files/pycharm/bin/pycharm.sh
and it will display /usr/local just fine