#to install in python: import pip  package_name='api' pip.main(['install',package_name])

Read more of this post