推荐学习书目
› 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 · Feb 23, 2018 · 2413 views
    This topic created in 3148 days ago, the information mentioned may be changed or developed.
    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 replies  •  2018-02-23 17:43:19 +08:00
    frostming
        1
    frostming  
       Feb 23, 2018
    哪里跟 flask 有关系了

    1. 你为什么装了个 https://pypi.python.org/pypi/blueprint
    2. from flask import Blueprint
    vZexc0m
        2
    vZexc0m  
       Feb 23, 2018
    代码不全
    vimiix
        4
    vimiix  
       Feb 23, 2018
    octobersnow
        5
    octobersnow  
    OP
       Feb 23, 2018
    @frostming 谢谢大佬的确是您说的。。。

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

    @vimiix 十分感谢大佬
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   820 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:29 · PVG 06:29 · LAX 15:29 · JFK 18:29
    ♥ Do have faith in what you're doing.