当前位置:网站首页>No module named 'flask_misaka' has been resolved [BUG solution]
No module named 'flask_misaka' has been resolved [BUG solution]
2022-08-04 09:02:00 【Progressive small vegetable pig】
项目场景:
pycharm安装flask-misaka失败
Collecting misaka
Using cached https://files.pythonhosted.org/packages/47/c2/ba9c82ae0ec62bcec62d690e715be6ead4457f83000f4ef6e919f77a8e5f/misaka-2.1.0.tar.gz
Collecting cffi>=1.0.0 (from misaka)
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/2f/85/a9184548ad4261916d08a50d9e272bf6f93c54f3735878fbfc9335efd94b/cffi-1.11.5-cp36-cp36m-win_amd64.whl (166kB)
100% |████████████████████████████████| 174kB 17kB/s
Collecting pycparser (from cffi>=1.0.0->misaka)
Building wheels for collected packages: misaka
Running setup.py bdist_wheel for misaka ... error
Complete output from command g:\programming\anaconda3\envs\virtual\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JHONAT~1\\AppData\\Local\\Temp\\pip-b
uild-9fgtbhdd\\misaka\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\U
sers\JHONAT~1\AppData\Local\Temp\tmptz2d209jpip-wheel- --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\misaka
copying misaka\api.py -> build\lib.win-amd64-3.6\misaka
copying misaka\callbacks.py -> build\lib.win-amd64-3.6\misaka
copying misaka\constants.py -> build\lib.win-amd64-3.6\misaka
copying misaka\utils.py -> build\lib.win-amd64-3.6\misaka
copying misaka\__init__.py -> build\lib.win-amd64-3.6\misaka
running build_ext
generating cffi module 'build\\temp.win-amd64-3.6\\Release\\misaka._hoedown.c'
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
building 'misaka._hoedown' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Failed building wheel for misaka
Running setup.py clean for misaka
Failed to build misaka
Installing collected packages: pycparser, cffi, misaka
Running setup.py install for misaka ... error
Complete output from command g:\programming\anaconda3\envs\virtual\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JHONAT~1\\AppData\\Local\\Temp\\pip
-build-9fgtbhdd\\misaka\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record
C:\Users\JHONAT~1\AppData\Local\Temp\pip-crdk5uw4-record\install-record.txt --single-version-externally-managed --compile --install-headers g:\programming\anaconda3\envs\virtual\inc
lude\site\python3.6\misaka:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.6
creating build\lib.win-amd64-3.6\misaka
copying misaka\api.py -> build\lib.win-amd64-3.6\misaka
copying misaka\callbacks.py -> build\lib.win-amd64-3.6\misaka
copying misaka\constants.py -> build\lib.win-amd64-3.6\misaka
copying misaka\utils.py -> build\lib.win-amd64-3.6\misaka
copying misaka\__init__.py -> build\lib.win-amd64-3.6\misaka
running build_ext
generating cffi module 'build\\temp.win-amd64-3.6\\Release\\misaka._hoedown.c'
creating build\temp.win-amd64-3.6
creating build\temp.win-amd64-3.6\Release
building 'misaka._hoedown' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
----------------------------------------
Command "g:\programming\anaconda3\envs\virtual\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JHONAT~1\\AppData\\Local\\Temp\\pip-build-9fgtbhdd\\misaka\
\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\JHONAT~1\AppDat
a\Local\Temp\pip-crdk5uw4-record\install-record.txt --single-version-externally-managed --compile --install-headers g:\programming\anaconda3\envs\virtual\include\site\python3.6\misa
ka" failed with error code 1 in C:\Users\JHONAT~1\AppData\Local\Temp\pip-build-9fgtbhdd\misaka\
问题描述
这里的主要原因是电脑缺少依赖.
Microsoft Visual C++ 14.0
原因分析:
下载安装Microsoft Visual C++ 14.0即可解决.
遇到bug2:
Microsoft visual C++ build tools安装包丢失
解决方案:
直接安装
安装这个:

安装成功,解决bug
flask_misaka
应用程序接口
flask_misaka.markdown(文本,渲染器=无,**选项)
将提供的 Markdown Format the text of the resolution is effective HTML,As a flask back.标记实例.
参数:
text – To be presented for HTML 的 Markdown 格式文本
renderer – 一个自定义的 misaka 渲染器,Used to replace the default renderer
选项 – Is used to customize the default renderer other options
返回:
A flask.A mark of rendering text instance
类 (应用 = 无, 渲染器 = 无, **默认值flask_misaka.Misaka)
init(应用 = 无,渲染器 = 无,**默认值)
设置 render() Methods the default option.If you want a template filter using options,Please set them here.markdown
You can specify the use of custom misaka The renderer instead of the default renderer.
init_app(应用程序)
Will present method is registered as a template filter.
参数: 应用程序 – A flask.Flask instance.
render(文本, **覆盖)
它委托给 markdown() 函数,传递 init() Methods any default Settings in the options or renderer.
Template filters, this method is called.markdown
参数:
text – To be presented for HTML 的 Markdown 格式文本
覆盖 – May override the default values of the other options
返回:
A flask.A mark of rendering text instance
边栏推荐
- 如何快速将Zabbix5.0升级至6.0?
- js-第一个出现两次的字母
- [Computer recording screen] How to use bandicam to record the game setting graphic tutorial
- ShuffleNet v2网络结构复现(Pytorch版)
- 【高并发基石】多线程、守护线程、线程安全、线程同步、互斥锁
- VRRP+MSTP配置详解【华为eNSP实验】
- Detailed explanation of MSTP protocol configuration on Layer 3 switches [Huawei eNSP experiment]
- Quick tips for getting out of a single
- MATLAB/Simulink快捷键
- DNS 查询原理详解—— 阮一峰的网络日志
猜你喜欢

线程安全问题

binder通信实现

B站回应HR称“核心用户都是Loser”、求职者是“白嫖党”:已被劝退

【Attention】Dual Attention(DANet) & Fully Attention(FLA)

Anton Paar安东帕密度计比重计维修DMA35性能参数

线程的状态

张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生

2022-08-02 分析RK817 输出32k clock PMIC_32KOUT_WIFI给WiFi模块 clock 注册devm_clk_hw_register

layout manager

【论文笔记】Understanding Long Programming Languages with Structure-Aware Sparse Attention
随机推荐
LVGL的多语言转换工具--字体设置的好助手
已解决No module named ‘flask_misaka‘【BUG解决】
PD 源码分析- Checker: region 健康卫士
递归思想
Interview at 14:00 in the afternoon, I came out at 14:08 with my head down, asking too much...
JMeter 常用的几种断言方法,你会几种呢?
今年37了,被大厂抢着要...
Libpq 是否支持读写分离配置
Shared_preload_libraries导致很多语法不支持
从零开始C语言精讲篇6:结构体
预测性维护学习之路
2022-08-02 Analyze RK817 output 32k clock PMIC_32KOUT_WIFI to WiFi module clock register devm_clk_hw_register
速速脱单诀窍
我和 TiDB 的故事 | 缘份在,那就终是能相遇的
Yolov5 replaces the backbone network of "Megvii Lightweight Convolutional Neural Network ShuffleNetv2"
ShuffleNet v2网络结构复现(Pytorch版)
命里有时终须有--记与TiDB的一次次擦肩而过
张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生
从零开始的tensorflow小白使用指北
新特性解读 | MySQL 8.0 在线调整 REDO