python - 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 目录中添加并添加了PYTHONPATH
on 环境变量当我在 windows powershell 上发出命令时,它显示导入错误。
有人可以帮我解决这个问题吗?如果你读过这本书,请发表评论。
解决方案
推荐阅读
- mongodb - 是否有 RESTful 接口可以在 Geoserver 中创建 MongoDB 实例层?
- python - 如何使用 cv2.minAreaRect(cnt) 在多轮廓图像上获得唯一的最小区域矩形?
- swift - 调用继承的子类的超类的超方法
- c# - 如何将datagridview日期列作为ddMMyyyy
- javascript - 修复动画延迟和等待时间
- laravel - Laravel 的 URL 问题
- java - Flux.onErrorContinue 参数类型
- php - 无法使用 PHP 在 google apis 请求中添加多个范围
- node.js - 核心 https 库与 npm 'request' 库
- r - 偏移交互项