如何设置路径和构建包/库

2024-04-25 00:11:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在google colaboratory中导入一个包。你知道吗

Linux中该软件包的安装说明是:

git clone https://github.com/JohannesBuchner/MultiNest
cd MultiNest/build
cmake ..
make

但是它不能在google colaboratory中被接受。你知道吗

我想做import pymultinest 但是我们应该先安装MultiNest才能使用它。 所以我们应该使用git clone然后构建它。 我不熟悉构建软件包等

我使用git clone,然后我使用import MultiNest,我没有错误,但是一旦我写了import pymultinest

ERROR:   Could not load MultiNest library "libmultinest.so"
ERROR:   You have to build it first,
ERROR:   and point the LD_LIBRARY_PATH environment variable to it!
ERROR:   manual: http://johannesbuchner.github.com/PyMultiNest/install.html

Tags: tohttpsimportgitbuildgithubcomclone