ModuleNotFoundError: No module named '_contextvars'

来源:3-8 使用前端界面调用flask发布的ckpt模型(1)

慕后端2457646

2019-09-10 17:49

Traceback (most recent call last):

  File "D:/MNIST_Demo/main.py", line 3, in <module>

    from flask import Flask, jsonify, render_template, request

  File "D:\MNIST_Demo\venv_one\lib\site-packages\flask\__init__.py", line 14, in <module>

    from jinja2 import escape

  File "D:\MNIST_Demo\venv_one\lib\site-packages\jinja2\__init__.py", line 82, in <module>

    _patch_async()

  File "D:\MNIST_Demo\venv_one\lib\site-packages\jinja2\__init__.py", line 78, in _patch_async

    from jinja2.asyncsupport import patch_all

  File "D:\MNIST_Demo\venv_one\lib\site-packages\jinja2\asyncsupport.py", line 13, in <module>

    import asyncio

  File "D:\Python\Anaconda\lib\asyncio\__init__.py", line 8, in <module>

    from .base_events import *

  File "D:\Python\Anaconda\lib\asyncio\base_events.py", line 39, in <module>

    from . import events

  File "D:\Python\Anaconda\lib\asyncio\events.py", line 14, in <module>

    import contextvars

  File "D:\Python\Anaconda\lib\contextvars.py", line 1, in <module>

    from _contextvars import Context, ContextVar, Token, copy_context

ModuleNotFoundError: No module named '_contextvars'

求大佬解答

写回答 关注

1回答

  • 慕梦前来
    2021-09-04 10:57:17

    同名 了吧,应该是

TensorFlow与Flask结合打造手写体数字识别

TensorFlow和flask结合识别自己的手写体数字

20432 学习 · 102 问题

查看课程

相似问题