![](/img/trans.png)
[英]pip3 install av but got error command 'x86_64-linux-gnu-gcc' failed with exit status 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.