How do I know python path on linux ubuntu?

Viewed 108795

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?

4 Answers

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

Command:

which python

gives path to python

as:

which python3

gives python3 path

Related