I have a problem when trying to run a code for a course at the university. The main file BASEchange.py tries to import 2 modules called "NODE" and "MESHMODEL". "MESHMODEL", in turn, imports RegularGridInterpolator from scipy.interpolate .
When I run the program in the mac terminal, using "python BASEchange.py -h", I get the following error:
ImportError: cannot import name RegularGridInterpolator
I have scipy intalled via pip.
Here are the first lines form meshModel.py:
import sys, os, platform, subprocess, stat, re, abc, math, linecache, shutil
import numpy as np
from scipy.interpolate import RegularGridInterpolator
from scipy import interpolate
from scipy.sparse import csc_matrix, lil_matrix, tril, find
from scipy.sparse.csgraph import reverse_cuthill_mckee
Thanks in advance!