import numpy as np triu_function = np.triu 确认导入语句的语法是否正确: 由于triu函数应该从numpy中导入,而不是从scipy.linalg,所以你需要更正你的导入语句。如上所示,使用import numpy as np然后np.triu来调用上三角矩阵函数。 如果以上都正确,尝试重新安装或更新scipy库(虽然这一步在这个特定问题中可能不是...
Describe your issue. I am trying to build scipy 1.11.4 from source with meson because I'd like to take advantage of Intel MKL linear algebra libraries that are installed on our system. I followed instructions here for how to link with MK...