PyTorch was compiled without NumPy support

Hello, I have compiled pytorch from source where the log show that numpy is supported.

But when I use the function of ‘from_numpy()’, there is an error, just as the title says, which says that it hasn’t been compiled with numpy. How can i solve this?

1 Like

Are you sure the version you’re running is the one you installed? Isn’t there an old install lingering somewhere?

I have the same issue. Did you solve it?

Yeah, I have installed pytorch in the local environment again instead of the global environment. And this issue didn’t occur again.

I think it is caused by the permission of the folder where numpy is installed.