V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
octobersnow
V2EX  ›  Python

求教各位大佬关于 flask blueprint

  •  
  •   octobersnow · 2018-02-23 17:19:47 +08:00 · 1707 次点击
    这是一个创建于 2245 天前的主题,其中的信息可能已经有所发展或是发生改变。
    D:\soft\python36\python.exe E:/code/Python/wbu_wechat/run.py
    Traceback (most recent call last):
      File "E:/code/Python/wbu_wechat/run.py", line 2, in <module>
        from main import main
      File "E:\code\Python\wbu_wechat\main\__init__.py", line 1, in <module>
        from blueprint import Blueprint
      File "D:\soft\python36\lib\site-packages\blueprint\__init__.py", line 1, in <module>
        from ConfigParser import ConfigParser
    ModuleNotFoundError: No module named 'ConfigParser'
    

    使用的是 python3 报上面的错 搜了一下 貌似是 ConfigParser 这个改名字了 求各位大佬指应该怎么弄

    5 条回复    2018-02-23 17:43:19 +08:00
    frostming
        1
    frostming  
       2018-02-23 17:31:35 +08:00
    哪里跟 flask 有关系了

    1. 你为什么装了个 https://pypi.python.org/pypi/blueprint
    2. from flask import Blueprint
    vZexc0m
        2
    vZexc0m  
       2018-02-23 17:33:55 +08:00
    代码不全
    vimiix
        4
    vimiix  
       2018-02-23 17:35:28 +08:00
    octobersnow
        5
    octobersnow  
    OP
       2018-02-23 17:43:19 +08:00
    @frostming 谢谢大佬的确是您说的。。。

    @vZexc0m 谢谢大佬 上面那位大佬已经帮忙解决了

    @vimiix 十分感谢大佬
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4967 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 05:38 · PVG 13:38 · LAX 22:38 · JFK 01:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.