[英]ImportError: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory
I am using Anaconda as my main python distribution (though also have the system's default python installed) so have to compile graph-tool from source to get it to work with Anaconda. 我使用Anaconda作为我的主要python发行版(虽然也安装了系统的默认python),因此必须从源代码编译图形工具以使其与Anaconda一起使用。
I am using Ubuntu 14.04 so also have to compile boost from source to be able to use the full functionality of graph-tool as the boost-coroutine library is currently only compiled as a static library ( https://bugs.launchpad.net/ubuntu/+source/boost1.54/+bug/1529289 ). 我正在使用Ubuntu 14.04所以也必须从源代码编译boost以便能够使用graph-tool的全部功能,因为boost-coroutine库目前只编译为静态库( https://bugs.launchpad.net/ ubuntu / + source / boost1.54 / + bug / 1529289 )。
I have done so and they have both installed without any error messages, however, when then importing graph-tool in python using from graph_tool.all import *
I get the error message ImportError: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory
. 我已经这样做了,他们都安装了没有任何错误消息,然而,当使用
from graph_tool.all import *
python中的图形工具时from graph_tool.all import *
我得到错误消息ImportError: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory
。
How could I go about solving that problem/what is this caused by? 我怎么能解决这个问题/这是由什么引起的?
Seems you have wrong boost
package version installed by conda 看来你已经错了
boost
包版本由畅达安装
conda list | grep boost
conda list | grep boost
列出已安装的conda boost包 conda list | grep boost
, you can see wrong version (not 1.61.0) conda list | grep boost
,你可以看到错误的版本(不是1.61.0) anaconda search -t conda boost | grep 1.61.0
anaconda search -t conda boost | grep 1.61.0
anaconda search -t conda boost | grep 1.61.0
conda install boost -c CHANNEL_NAME
conda install boost -c CHANNEL_NAME
In my case I also have conflicts with this message: 在我的情况下,我也与此消息冲突:
Linking packages ... CondaOSError: OS error: failed to link (src='/home/user/anaconda3/pkgs/icu-54.1-0/lib/icu/pkgdata.inc', dst='/home/user/anaconda3/envs/py3_graph/lib/icu/pkgdata.inc', type=3, error=FileExistsError(17, 'File exists'))
Removing /home/user/anaconda3/envs/py3_graph/lib/icu
folder helps me 删除
/home/user/anaconda3/envs/py3_graph/lib/icu
文件夹可以帮助我
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.