P-M*_*P-M 6 c++ python boost graph-tool
我使用Anaconda作为我的主要python发行版(虽然也安装了系统的默认python),因此必须从源代码编译图形工具以使其与Anaconda一起使用.
我正在使用Ubuntu 14.04所以也必须从源代码编译boost以便能够使用graph-tool的全部功能,因为boost-coroutine库目前只编译为静态库(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.
我怎么能解决这个问题/这是由什么引起的?
boostconda似乎安装了错误的软件包版本
conda list | grep boost,可以看到错误的版本(不是1.61.0)anaconda search -t conda boost | grep 1.61.0conda 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文件夹对我有帮助