简体   繁体   English

ImportError:libboost_iostreams.so.1.61.0:无法打开共享对象文件:没有这样的文件或目录

[英]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包版本由畅达安装

  1. List installed conda boost package in current environment 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)
  2. Search required version 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
  3. Install correct version with same name 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.

相关问题 ImportError:libboost_python.so.1.41.0:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libboost_python.so.1.41.0: cannot open shared object file: No such file or directory python`ImportError:libboost_python27.so.1.67.0:无法打开共享对象文件:没有这样的文件或目录` - python `ImportError: libboost_python27.so.1.67.0: cannot open shared object file: No such file or directory ` 导入错误:libboost_python.so.1.65.1:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libboost_python.so.1.65.1: cannot open shared object file: No such file or directory ImportError:libcublas.so.8.0:无法打开共享对象文件:没有这样的文件或目录(共享Linux) - ImportError: libcublas.so.8.0: cannot open shared object file: No such file or directory (Shared Linux) ImportError:libcudart.so.7.0:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libcudart.so.7.0: cannot open shared object file: No such file or directory 导入错误:libgeos-3.6.2.so:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libgeos-3.6.2.so: cannot open shared object file: No such file or directory Apache,Flask和Tensorflow-“ ImportError:libcusolver.so.8.0:无法打开共享对象文件:没有此类文件或目录” - Apache, Flask & Tensorflow - “ImportError: libcusolver.so.8.0: cannot open shared object file: No such file or directory” Tensorflow:ImportError:libcudnn.so.7:无法打开共享对象文件:没有这样的文件或目录 - Tensorflow: ImportError: libcudnn.so.7: cannot open shared object file: No such file or directory 如何克服 Python ImportError: libmqic_r.so: cannot open shared object file: No such file or directory - How to over come Python ImportError: libmqic_r.so: cannot open shared object file: No such file or directory 导入错误:libSM.so.6:无法打开共享对象文件:没有这样的文件或目录 - ImportError: libSM.so.6: cannot open shared object file: No such file or directory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM