Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/321.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/python-2.7/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
ImportError:python中没有名为bin.app的模块_Python_Python 2.7_Importerror - Fatal编程技术网

ImportError:python中没有名为bin.app的模块

ImportError:python中没有名为bin.app的模块,python,python-2.7,importerror,Python,Python 2.7,Importerror,我目前正在阅读Zed A Shaw的LPTHW,我被困在Ex51中 from nose.tools import * from bin.app import app from tests.tools import assert_response 我已经在bin目录中添加了\uuuu init\uuuuu.py,并在环境变量上添加了PYTHONPATH 当我在windows powershell上发出命令时,它会显示导入错误 有人能帮我解决这个问题吗?如果你读过这本书,请发表评论。这似乎是一个愚

我目前正在阅读Zed A Shaw的LPTHW,我被困在Ex51中

from nose.tools import *
from bin.app import app
from tests.tools import assert_response
我已经在bin目录中添加了
\uuuu init\uuuuu.py
,并在环境变量上添加了
PYTHONPATH
当我在windows powershell上发出命令时,它会显示导入错误


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

这似乎是一个愚蠢的问题,但
bin/app.py
是否存在?另外,您对
PYTHONPATH
到底做了什么?这似乎是一个愚蠢的问题,但
bin/app.py
是否存在?另外,您对PYTHONPATH的具体操作是什么?