Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.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
Python ImportError:Windows 7上没有名为flask_wtf.csrf的模块_Python_Google App Engine_Windows 7_Flask_Flask Wtforms - Fatal编程技术网

Python ImportError:Windows 7上没有名为flask_wtf.csrf的模块

Python ImportError:Windows 7上没有名为flask_wtf.csrf的模块,python,google-app-engine,windows-7,flask,flask-wtforms,Python,Google App Engine,Windows 7,Flask,Flask Wtforms,我很难在windows上设置flask项目。它在mac上就像一个魔咒,但在windows 7上,我得到了以下信息: <module 'ntpath' from 'C:\PYTHON27\LIB\ntpath.pyc'> ERROR 2015-01-18 17:52:22,927 wsgi.py:263] Traceback (most recent call last): File "C:\Program Files (x86)\Google\google_appengi

我很难在windows上设置flask项目。它在mac上就像一个魔咒,但在windows 7上,我得到了以下信息:

<module 'ntpath' from 'C:\PYTHON27\LIB\ntpath.pyc'>
ERROR    2015-01-18 17:52:22,927 wsgi.py:263] 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "C:\Users\Fille\PycharmProjects\Objektia-Marketplace\main.py", line 69, in <module>
    from flask_wtf.csrf import CsrfProtect
ImportError: No module named flask_wtf.csrf
INFO     2015-01-18 18:52:22,938 module.py:718] default: "GET /backends HTTP/1.1" 500 -
所有经过测试的计算机4 yosemite,1 win7都运行相同版本的pycharm 3.4.1,所有模块的版本都相同。mac上配置的解释器的所有模块也安装在windows机器解释器上。他们正在运行Python2.7.6,因为2.7.9还不能与AppEngine一起工作。也在Windows7上尝试了2.7.2,结果相同


windows似乎找不到flask_wtf,但它的安装方式与在mac上使用pycharm中的工具相同。你知道如何解决这个问题吗?

你能确认python能找到它吗?如果运行python并导入flaskwtf.csrfNo error,会发生什么。它从命令行开始工作。它看起来像是您在使用wsgi。安装flask后是否也重新启动了webservice?是的。我几周前安装的。