ImportError: No module named 'utils'
ImportError: No module named 'utils'
安装 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 *
里面是这么说的
安装 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 *
里面是这么说的