首页 > 解决方案 > ImportError:python 中没有名为 bin.app 的模块

问题描述

我目前正在阅读 Zed A Shaw 的 LPTHW,但我陷入了 Ex51。

from nose.tools import *
from bin.app import app
from tests.tools import assert_response

我已经 __init__.py 在 bin 目录中添加并添加了PYTHONPATHon 环境变量当我在 windows powershell 上发出命令时,它显示导入错误。

有人可以帮我解决这个问题吗?如果你读过这本书,请发表评论。

标签: pythonpython-2.7importerror

解决方案


推荐阅读