问题
为什么会单独讲编译安装ml_dtypes,因为在安装TensorFlow的时候,会自动下载相关依赖包然后进行安装,其中安装ml_dtypes依赖包的时候会报如下错误:ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
就算根据我前面的文章【龙芯loongarch64安装numpy报错“No module named ‘numpy.core._multiarray_umath‘”】安装了numpy之后,再安装TensorFlow后还是会报同样的错误。
解决办法
获取图片中的链接:
wget https://pypi.tuna.tsinghua.edu.cn/packages/fa/47/09ca9556bf99cfe7ddf129a3423642bd482a27a717bf115090493fa42429/ml_dtypes-0.2.0.tar.gz
tar -xvf ml_dtypes-0.2.0.tar.gz