sophgo / tpu-mlir

Machine learning compiler based on MLIR for Sophgo TPU.
Other
613 stars 154 forks source link

pip install tpu_mlir error #189

Open Zhighway777 opened 2 months ago

Zhighway777 commented 2 months ago

envorment : ubuntu 22.04 python version = Python 3.10.12

When I installing the dependence:pip install tpu_mlir, there is an error:

ERROR: Could not install packages due to an OSError: [Errno 20] Not a directory: '/home/hw/.local/bin/f2py'

I find that the path of f2py is " /home/username/.local/lib/python3.10/site-packages/numpy/f2py" instead of "/home/username/.local/bin/f2py"

To fix this bug I have to make new blank dir "/bin/f2py" in ".local/" and create a sign-link to connect them: $ ln -s /home/username/.local/lib/python3.10/site-packages/numpy/f2py/f2py /home/hw/.local/bin/f2py It works, but I think it is not perfect, what should I do to fix it completely?

HarmonyHu commented 1 week ago

Could you try to install tpu-mlir in docker sophgo/tpuc_dev:latest