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?
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.
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.
You can type which python on the ubuntu terminal and it will give the Python installed location path.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With