繁体   English   中英

执行 pip3 install tslearn 时出错 - 命令“x86_64-linux-gnu-gcc”失败,退出状态为 1

[英]Error doing pip3 install tslearn - command 'x86_64-linux-gnu-gcc' failed with exit status 1

当我尝试在我的 ElementaryOS(类似于 ubuntu)机器上pip3 install tslearn时出现此错误

    building 'tslearn.cycc' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/tslearn
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/bruno/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/include/python3.6m -c tslearn/cycc.c -o build/temp.linux-x86_64-3.6/tslearn/cycc.o
    /usr/lib/gcc/x86_64-linux-gnu/7/cc1: error while loading shared libraries: libisl.so.19: cannot open shared object file: No such file or directory
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-5p7o5dn8/tslearn/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-tqrjth8y-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-5p7o5dn8/tslearn/

我已经在这个线程上尝试了解决方案,但没有任何效果。 有任何想法吗? 谢谢

最后,我通过安装 libisl修复它,然后进入安装位置,找到 libisl.so,并创建一个符号链接以将 libisl.so.19 指向它 - 通过执行ln -s libisl.so libisl.so.19

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM