Supply

Have you ever ever questioned the way to examine the set up path of python and it’s model? In case you have then this put up is for you. It is vitally simple to examine the model and set up location of python on linux in addition to on home windows. First I’ll present the tactic of checking this on linux after which on home windows.

  • On linux simply kind these two instructions within the terminal:
# for python set up path
root@bt:/$ which python
/usr/bin/python

# for python model;
root@bt:/usr/bin$ python -V
Python 2.7.5
  • On home windows kind this instructions within the command immediate for python model:
python -V

And sort these instructions within the python shell for python set up path

>>> import os
>>> import sys
>>> os.path.dirname(sys.executable)
'C:Python27'

This turns out to be useful when it’s worthwhile to know the model and path of python actual fast. I hope you preferred in the present day’s put up. Keep tuned for the following one. Do share your views within the feedback under.