V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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 · 2139 views
    This topic created in 2989 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   ·   Solana   ·   2572 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 06:09 · PVG 14:09 · LAX 23:09 · JFK 02:09
    ♥ Do have faith in what you're doing.