Quick methods to add python Intrepreter into windows system path variable

All three methods are tested and it is working in all versions of windows OS.

Method 1:

  1. Hold down windows key and press pause key.
  2. Click Advanced System Settings.
  3. Click Environment Variables.
  4. Append ;C:\python27 to the Path variable

Method 2:

Setting path at Windows

To add the Python directory to the path for a particular session in Windows −

In command prompt − type path %path%;C:\Python and press Enter.

Note − C:\Python is the path of the Python directory

Python Environment Variables

Here are important environment variables, which can be recognized by Python −

S.No. System Variable & Description

It has a role similar to PATH. This variable tells the Python interpreter where to locate the module files imported into a program. It should include the Python source library directory and the directories containing Python source code. PYTHONPATH is sometimes preset by the Python installer.


It contains the path of an initialization file containing Python source code. It is executed every time you start the interpreter. It is named as .pythonrc.py in Unix and it contains commands that load utilities or modify PYTHONPATH.


It is used in Windows to instruct Python to find the first case-insensitive match in an import statement. Set this variable to any value to activate it.


It is an alternative module search path. It is usually embedded in the PYTHONSTARTUP or PYTHONPATH directories to make switching module libraries easy.

Method 3:

  1. [Right Click]Computer > Properties >Advanced System Settings > Environment Variables
  2. Click [New] under “System Variable”
  3. Variable Name: PY_HOME, Variable Value:C:\path\to\python\version enter image description here
  4. Click [OK]
  5. Locate the “Path” System variable and click [Edit]
  6. Add the following to the existing variable:

    %PY_HOME%;%PY_HOME%\Lib;%PY_HOME%\DLLs;%PY_HOME%\Lib\lib-tk; enter image description here

  7. Click [OK] to close all of the windows.

As a final sanity check open a command prompt and enter python. You should see

>python "type version"

If you need to switch between versions, you only need to modify the PY_HOME variable to point to the proper directory. This is bit easier to manage if you need multiple python versions installed.

How to create Make file in CPP

What is Makefile

Makefile is a program building tool which runs on Unix, Linux, and their flavors. It aids in simplifying building program executables that may need various modules. To determine how the modules need to be compiled or recompiled together, make takes the help of user-defined makefiles.

Link to understand the Make file creation in CPP


Thanks for the youtube programming knowledge channel in making this tutorial.

Video source: youtube programming knowledge channel

3D Printer SCARA Robot – Teacup Firmware windows dependency software package links and Installation process

#Teacup Firmware Code python package dependency link:

For windows installation

Python 2.7.13 – https://www.python.org/downloads/

Python 2.7 wxpython package – https://wxpython.org/download.php#msw

Python 3.6.1 (optional) – https://www.python.org/downloads/

Arduino IDE download link – https://www.arduino.cc/en/Main/Software

Arduino IDE procedure link – https://www.arduino.cc/en/guide/windows

References:  Teacup Firmware source code link


Please like this post and we are very happy to share our knowledge to you

Dictionary .get method usage in python


The method get() returns a value for the given key. If key is not available then returns default value None.


Following is the syntax for get() method −

dict.get(key, default=None)


  • key — This is the Key to be searched in the dictionary.
  • default — This is the Value to be returned in case key does not exist.

Return Value

This method return a value for the given key. If key is not available, then returns default value None.


The following example shows the usage of get() method.


diction = {'Name': 'Kumar', 'Age': 12}

print "Value : %s" %  diction.get('Age')
print "Value : %s" %  diction.get('School', "Nothing")

When we run above program, it produces following result −

Value : 12
Value : Nothing

Solution for : Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

root@123:~# sudo apt-get install git
E: Could not get lock /var/lib/dpkg/lock – open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

Remove your /var/lib/dpkg/lock file and force package reconfiguration.

sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a

It should work after this.

Top 10 Internet of Things Platform

  1. Amazon web services a.ka. AWS
  2. Microsoft Azure Internet of Things hub
  3. Thingworx
  4. IBM Watson Internet of Things Platform
  5. Cisco Internet of Things Platform
  6. Salesforce Internet of Things Platform
  7. Carriots Internet of Things Platform
  8. Oracle Internet of Things Platform
  9. Predix Internet of Things Platform – GE
  10. Kaa Internet of Things Platform – middleware

Few more quickstart Internet of Things Platform

  1. Samsung Artik Cloud
  2. Google cloud
  3. Thingspeak
  4. Things.io
  5. Thinger.io
  6. Cayenne Internet of Things Platform
  7. CloudMQTT Internet of Things Platform
  8. Exp-lab Internet of Things Platform
  9. Iot-lab Internet of Things Platform
  10. favouriot

Complete and easy understanding of HC-SR04 Ultrasonic Range Sensor working and it’s programming interface with Raspberry Pi using python

Please go through the below link to get the complete understanding of HC-SR04 module


Link for raspberry pi HC-SR04 library module


M2M Example applications GitHub links

I am sharing few M2M Applications links which I come across during my research. Please find it below, it is good to start

Programming language used are

  1. Python
  2. JavaScript

1. Smart Traffic Management System for Emergency Services


2. Local Website for Harvey Mudd College