Trying to Import Infoblox Module in Python

119 Views Asked by At

I am trying to write some code in python to retrieve some data from Infoblox. To do this i need to Import the Infoblox Module.

Can anyone tell me how to do this ?

2

There are 2 best solutions below

1
On

Use:

import infoblox

infoblox info

1
On

Before you can import infoblox you need to install it:

  • open a command prompt (press windows button, then type cmd)
  • if you are working in a virtual environment access it with activate yourenvname (otherwise skip this step)
  • execute pip install infoblox to install infoblox, then you should be fine
  • to test it from the command prompt, execute python, and then try executing import infoblox

The same process works for basically every package.