Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I know python path on linux ubuntu?

In ubuntu linux if we want to set up python path we do something like this:

export PYTHONPATH=/etc ...

Now, how I would know what the current path I have?

like image 885
Mero Avatar asked Dec 06 '13 12:12

Mero


People also ask

Where is Python directory in Linux?

For most Linux environments, Python is installed under /usr/local , and the libraries can be found there. For Mac OS, the home directory is under /Library/Frameworks/Python.

How do I know if Python is installed on Ubuntu?

To check if Python is installed on your system or not, open up your terminal by pressing Ctrl + Alt + T. Type in "python3" and press Enter. If you see the following output in your terminal, then you have Python installed on your Ubuntu machine.


1 Answers

You can type which python on the ubuntu terminal and it will give the Python installed location path.

like image 80
Aashish Ranjan Avatar answered Oct 24 '22 17:10

Aashish Ranjan