gpt4 book ai didi

python - 导入错误 : No module named 'utils'

转载 作者:行者123 更新时间:2023-11-28 20:31:45 27 4
gpt4 key购买 nike

安装 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 + Python 3.5.6。

非常感谢任何帮助。

最佳答案

你试过吗

from python_utils import *

python-utils documentation 中是这么说的

关于python - 导入错误 : No module named 'utils' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53819953/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com