我使用Anaconda作为我的主要python发行版(尽管也安装了系统的默认python),所以必须从源代码处编译graph tool以使其与Anaconda一起工作。在
我使用的是Ubuntu14.04,所以还必须从源代码编译boost,才能使用图形工具的全部功能,因为boost协同程序库目前只编译为静态库(https://bugs.launchpad.net/ubuntu/+source/boost1.54/+bug/1529289)。在
我已经这样做了,而且它们都没有任何错误消息进行安装,但是,当使用from graph_tool.all import *
在python中导入图形工具时,我得到了错误消息ImportError: libboost_iostreams.so.1.61.0: cannot open shared object file: No such file or directory
。在
我该怎么解决这个问题/这是由什么引起的?在
似乎conda安装了错误的
boost
包版本conda list | grep boost
,您可以看到错误的版本(不是1.61.0)anaconda search -t conda boost | grep 1.61.0
conda install boost -c CHANNEL_NAME
安装正确的版本在我的情况下,我也与此信息有冲突:
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'))
删除
/home/user/anaconda3/envs/py3_graph/lib/icu
文件夹对我有帮助相关问题 更多 >
编程相关推荐