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?
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