安装了gudhi python模块,但不能导入

时间:2018-02-22 06:01:52

标签: python-import

导入gudhi模块之后:

$ conda config --add channels conda-forge
$ conda install -c vincentrouvreau gudhi

import gudhi

导致导入错误。 python2.7已安装。路径变量列出了python路径。其他人必须检查什么?

1 个答案:

答案 0 :(得分:4)

gudhi包目前仅适用于Python 3.6。 我正在为他们提供conda-forge,但我仍然有一些编译问题。

您可以通过以下方式安装GUDHI Python版本:

从这里安装Miniconda(例如)Python 3.6 x64:https://conda.io/miniconda.html

在命令行中:

conda config --add channels conda-forge
conda install -c vincentrouvreau gudhi
python
>>> import gudhi

然后您可以尝试文档中的示例:http://gudhi.gforge.inria.fr/python/latest/

此致

Vincent Rouvreau