简体   繁体   中英

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

when I try to pip3 install tslearn on my ElementaryOS (similar to ubuntu) machine I get this error

    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/

I've tried the solutions on this thread but nothing works. Any ideas? Thanks

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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