How can I troubleshoot Python “Could not find platform independent libraries

前端 未结 7 1526
心在旅途
心在旅途 2020-11-28 09:59

I\'m trying to use Fontcustom to create an icon font using svg files and fontforge. I\'m on OSX.7. However, whenever I run the program I get the error

Could          


        
7条回答
  •  忘掉有多难
    2020-11-28 10:08

    I had this issue while using Python installed with sudo make altinstall on Opensuse linux. It seems that the compiled libraries are installed in /usr/local/lib64 but Python is looking for them in /usr/local/lib.

    I solved it by creating a dynamic link to the relevant directory in /usr/local/lib

    sudo ln -s /usr/local/lib64/python3.8/lib-dynload/ /usr/local/lib/python3.8/lib-dynload
    

    I suspect the better thing to do would be to specify libdir as an argument to configure (at the start of the build process) but I haven't tested it that way.

提交回复
热议问题