Setup bolt python liabrary

i am facing a problem while setting up the bolt python liabrary…
while putting “sudo pip3 install boltiot” in the putty software i am the getting the message “You are using pip version 8.1.1, however version 19.1.1 is available.(screenshot 107)
You should consider upgrading via the ‘pip install --upgrade pip’ command.”
and when i am checking device status from code below

from boltiot import Bolt
device_id  = "BOLTXXXXXX"
mybolt = Bolt(api_key, device_id)
response = mybolt.isOnline()
print (response)

iam getting a message in response is -
Traceback (most recent call last):
File “”, line 5, in
response = mybolt.isOnline()
NameError: name ‘mybolt’ is not defined
how to fix this please tell me.

use ‘sudo -H pip3 install --upgrade pip’ to upgrade pip to latest version.
Retry ‘sudo pip3 install boltiot’. It should work fine.

Thankyou Sir … NOW i can check my device status

HI @st.deepak15,

Can you please share what exactly solved your problem so that other can also refer it ?