0

我正在尝试使用 Jupyter 笔记本安装 exafmm 以在 Python 3.8 中使用。

它应该很简单,所以我不知道问题是什么。我被卡住了,无法解决这个问题。当我运行代码时,我得到了错误

File "<ipython-input-8-d0f090c60924>", line 3
    ./configure
    ^
SyntaxError: invalid syntax
    !git clone https://github.com/exafmm/exafmm-t.git
    %cd exafmm-t
    ./configure
    make
    make install

我试过放在sudo前面./configure

4

1 回答 1

0

好吧,既然您打算将这个库与pythonand一起使用jupyter notebook,我想您不应该从源代码构建这个库。根据他们的文档,this approach is only necessary for the users who want to use exafmm-t in C++ applications(参考:https ://exafmm.github.io/exafmm-t/compile.html#install-exafmm-t )

notebook尝试在您的(参考https://exafmm.github.io/exafmm-t/compile.html#install-exafmm-ts-python-package)中运行以下 bash 命令:

! pip install git+https://github.com/exafmm/exafmm-t.git
于 2020-12-19T13:40:17.473 回答