3
votes

I am using Ubuntu 16.04 . Where is the python 3 installation directory ?
Running "whereis python3" in terminal gives me:

python3: /usr/bin/python3.5m-config /usr/bin/python3 /usr/bin/python3.5m
/usr/bin/python3.5-config /usr/bin/python3.5 /usr/lib/python3
/usr/lib/python3.5 /etc/python3 /etc/python3.5 /usr/local/lib/python3.5
/usr/include/python3.5m /usr/include/python3.5
/usr/share/python3 /usr/share/man/man1/python3.1.gz

Also where is the intrepreter i.e the python 3 executable ? And how would I add this path to Pycharm ?

1
Try which python3 - sshashank124
The executable is /usr/bin/python3. - abarnert
@abarnert Thanks and where are the other files of python 3 located ? and if a program asks for directory of python 3 should I give the directory as "/usr/bin/python3" ? - Emerdan
No. I'm not sure what PyCharm means by "installation directory", but it's definitely not /usr/bin/python3; that's not even a directory. (When I've used PyCharm, both on Ubuntu and on macOS, it's always given me a list of all local installed Pythons, and the only time I've had to add one manually, it's because I had a local build under some ~/src directory.) But I'm sure it's in their docs. Configuring for a standard Ubuntu package can't be an uncommon thing. - abarnert

1 Answers

2
votes

you can try this :

which python3