Turn days of simulation babysitting into minutes of automated, parallel computing.
First things first, let’s make sure Python 3 is set up correctly on your system. If you already have it installed, great! We’ll be able to move straight to installing the Inductiva API like any other Python package.
If it’s missing, we’ll go over how to install it on macOS.
Step-by-Step
python3
Python 3.12.7 (tags/v3.12.7:abcdef, Oct 3 2023, 12:00:00)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
xcode-select: note: No developer tools were found at '/Applications/Xcode.app', requesting installation.
If developer tools are located at a non-default location on disk, use 'sudo xcode-select --switch path/to/Xcode.app' to specify the Xcode that you wish to use for command line developer tools, and cancel the installation dialog.
See 'man xcode-select' for more details.
python3 in the Terminal again. You should now see confirmation that Python 3 is ready to go!Python 3.12.7 (tags/v3.12.7:abcdef, Oct 3 2023, 12:00:00)
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
Now that you have Python 3 installed, let’s make sure pip, the Python package installer, is up to date. This will help avoid any compatibility issues.
To update pip, open your Terminal and type:
python3 -m pip install --upgrade pip
This command should run smoothly, but if you see a warning message like this:
WARNING: The scripts pip, pip3, and pip3.9 are installed in '/Users/YOURUSERNAME/Library/Python/3.9/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
it means we’ll need to update the PATH environment variable to make sure Python-related commands like pip are accessible from the command line.
If you saw the warning above, it’s time to update your PATH variable. This tells your system where to find Python binaries, like pip, and ensures Inductiva’s Command Line Interface can be accessed later on.
echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/
YOURUSERNAME is your actual username, which you can find by checking the Terminal prompt or running whoami in the Terminal!
nano ~/.zshrc
export PATH=$PATH:/Users/YOURUSERNAME/Library/Python/3.9/bin
echo $PATH
Awesome! Now that pip is updated and Python is set in your PATH, you’re all set for installing the Inductiva Python Package and start simulating!
If you run into any issues or challenges while installing the API, please reach out to us at support@inductiva.ai. We’d love to help troubleshoot and find ways to make the setup process even smoother.
You can also check out our troubleshooting guide for more information.