Utils包没有模块

2024-07-02 13:39:30 发布

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

我试图实现我在这里找到的部分代码:https://github.com/Esri/raster-functions/blob/master/functions/SelectByPixelSize.py#L68-L73。它是在ArcGIS环境下的光栅和图像处理。在

我需要在包中使用utils方法。我用pip install utils安装了包。但是当我使用这个软件包时,我什么也装不下。在

例如:

import utils
utils.Trace()

我得到错误:AttributeError: 'module' object has no attribute 'Trace'

我实际上找不到从'utils'包加载的任何模块。__init__.py文件为空。 我使用的是python2.7.10。在

谢谢你的帮助!在


Tags: 代码pyhttpsgithubmastercomtraceutils