简体   繁体   English

导入错误:从 Python Package 导入时出现问题

[英]Import Error: Problem with importing from Python Package

import audiolabel 
import numpy as np

from ultramisc import ebutils as eb
from audiolabel import LabelManager



ImportError                               Traceback (most recent call last)
<ipython-input-38-2387500242d1> in <module>
      4 
      5 from ultramisc import ebutils as eb
----> 6 from audiolabel import LabelManager

ImportError: cannot import name 'LabelManager' from 'audiolabel' (unknown location)

In [39]:

I'm trying to import LabelManager from the audiolabel package I got using git clone but for some reason there is no way to import LabelManager?我正在尝试从使用 git 克隆的音频标签 package 导入 LabelManager,但由于某种原因无法导入 LabelManager? I'm not sure why this is the case, because from all the documentation I've seen from audiolabel, they are able to import LabelManager我不确定为什么会这样,因为从我从 audiolabel 看到的所有文档中,他们能够导入 LabelManager

This error could be caused by multiple reasons... Have you tried downloading via pip install?此错误可能由多种原因引起...您是否尝试通过 pip 安装下载?

pip3 install "git+https://github.com/rsprouse/audiolabel.git"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM