libpython3.7m.so.1.0 error when importing torch into python
doryan-gonin opened this issue · 1 comments
doryan-gonin commented
I manually installed the torch wheel on my raspberry py, and everything seemed to work fine (after like a week of trying to install it without errors). When I imported the torch library into python (with the import torch
command) i got the following error :
ImportError: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
I tried to look for the file in question but as th error says, it doesn't exist. Do you happen to know what this file is used for and how I could either get it back or make it work without ?
FineBlack commented
One way is to compile Python source code
./configure --prefix=$PWD/_install --enable-shared --enable-optimizations
be careful “--enable-shared”