[英]ConvexHull and scipy throws an error when importing in qgis
When I am trying to import ConvexHull
from scipy
I am getting an error. 当我尝试从
scipy
导入ConvexHull
时,出现错误。
from scipy.spatial import ConvexHull
**Traceback (most recent call last):
File "<input>", line 1, in <module>
ImportError: cannot import name ConvexHull**
Here what I am doing wrong? 在这里我做错了吗?
I am using scipy0.12.0 version.But when I am importing scipy
and scipy.spatial
I am not getting any error. 我正在使用scipy0.12.0版本。但是当我导入
scipy
和scipy.spatial
时没有出现任何错误。
I think this is what you are looking for 我想这就是你要找的
from scipy import spatial
spatial.qhull?
Type: module
Base Class: <type 'module'>
String Form:<module 'scipy.spatial.qhull' from '/usr/lib/python2.7/dist-packages/scipy/spatial/qhull.so'>
Namespace: Interactive
File: /usr/lib/python2.7/dist-packages/scipy/spatial/qhull.so
Docstring:
Wrappers for Qhull triangulation, plus some additional N-D geometry utilities
.. versionadded:: 0.9
But it is true, you should be able to import the ConvexHull directly from version 0.12.0 on. 但是,确实如此,您应该能够直接从版本0.12.0导入ConvexHull。
New in version 0.12.0.
版本0.12.0中的新功能。
I'm using 0.9 so that is why I have to use the Qhull library
. 我正在使用0.9,所以这就是为什么我必须使用
Qhull library
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.