On Linux Mint, Pycharm unable to see /usr/local/bin/

Answered

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 ?

0
5 comments
Dear customer, We apologize for a delay in responding to this request as the entire support team is on holiday at the moment. We will get back to this request on Monday 30th. Thank you for understanding.
0

Hi, I believe the problem can be caused by permission, does the user you start PyCharm with has permission to browse /usr/local?

0
Avatar
Permanently deleted user

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 ?

0
Avatar
Permanently deleted user

I have the same issue with the most recent version of pycharm on linux. Did this issue ever get resolved?

0
Avatar
Permanently deleted user

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

 

0

Please sign in to leave a comment.