我不确定是否正确安装了GUDHI

2024-04-20 09:54:27 发布

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

我遵循this指南安装gudhiforpython。我执行了以下命令

cd /path-to-gudhi/
mkdir build
cd build/
cmake ..
cd python
make

之后,导游说要做什么

cd /path-to-gudhi/build/python
# May require sudo or administrator privileges
make install

但是当我运行makeinstall时,什么也没有发生,它只返回

Install the project...
-- Install configuration: ""

我也不知道自己是否做错了什么(这是我第一次安装python模块)。在python中,我键入

import gudhi

它回来了

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'gudhi'

当我这样做的时候

make test

在命令行上,它返回

Running tests...
Test project /home/alex/gudhi.3.0.0/build/python
No tests were found!!!

可能出了什么问题


Tags: installtopathno命令buildprojectmake