importorror:没有名为“utils”的模块

2024-05-18 09:40:18 发布

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

在安装Tensorflow之后,当我试图运行我的代码时,我得到一个导入错误

from utils import *
Traceback (most recent call last):

  File "<ipython-input-1-b81aa0fdb889>", line 1, in <module>
    from utils import *

ImportError: No module named 'utils'

尽管我两个都试过了

conda install -c conda-forge python-utils 
conda install -c conda-forge/label/gcc7 python-utils

如果我在Anaconda Navigator的环境中查看,python utils包似乎已经安装。

我的环境:macOS Mojave 10.14+Tensorflow 1.12.0+Python3.5.6。

任何帮助都是非常感谢的。


Tags: install代码fromimportmost环境tensorflow错误