try import sqlalchemy import yaml except ImportError print sudo pip in

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
try:
import sqlalchemy
import yaml
except ImportError:
print('sudo pip install sqlalchemy pyyaml')
try:
from clint.textui.prompt import query
except ImportError:
print('sudo pip install git+https://github.com/kennethreitz/clint.git')
sys.exit()