try: from ovh import ovh except ImportError: # In case it's installed globally import ovh client = ovh.Client() vps_list = client.get('/vps/') for vps in vps_list: print(vps)