Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Hosting Subscription / Supported Technology / How to use the NumPy library for your Python scripts?

How to use the NumPy library for your Python scripts?

Last update: Oct 22, 2025

If you are using or intend to use the Python library NumPy in your scripts, we advise you to add the following lines of code at the beginning of the script in order to avoid excessive CPU usage on the hosting server where your script resides and potential performance issues:

import os
os.environ['OPENBLAS_NUM_THREADS'] = '1'
import numpy as np

Share this article