Supply

Have you ever ever puzzled the best way to test the set up path of python and it’s model? When you’ve got then this publish is for you. It is rather simple to test the model and set up location of python on linux in addition to on home windows. First I’ll present the strategy 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 kind these instructions within the python shell for python set up path

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

This is useful when you must know the model and path of python actual fast. I hope you favored as we speak’s publish. Keep tuned for the following one. Do share your views within the feedback under.