当前位置:网站首页>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
边栏推荐
- yolo x 跑起来,详细的不行,且内含800错误解决办法
- TCP的四次挥手
- [Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide
- The difference between character stream and byte stream
- 速速脱单诀窍
- 阿里云的数据库系统怎么升级更新的www.zgysffm.com怎么加快访问速度?
- 2022年制冷与空调设备运行操作特种作业证考试题库及模拟考试
- Fiddler(二)-手机抓包502错误解决方法
- 将jpg图片转换成yuv420(NV12)数据文件
- C Language Lectures from Scratch Part 6: Structure
猜你喜欢
我和 TiDB 的故事 | TiDB 对我不离不弃,我亦如此
BFM模型和Landmarks可视化
Implementation of redis distributed lock
张朝阳对话俞敏洪:谈宇宙、谈焦虑、谈创业、谈退休、谈人生
The difference between character stream and byte stream
B站回应HR称“核心用户都是Loser”、求职者是“白嫖党”:已被劝退
NAT/NAPT地址转换(内外网通信)技术详解【华为eNSP】
路由/三层交换机DHCP下发地址详解【华为eNSP】
Recommend several methods that can directly translate PDF English documents
关于#sql#的问题:后面换了一个数据库里面的数据就不能跑了
随机推荐
占位,稍后补上
TiCDC同步延迟问题处理
【无标题】
请你谈谈网站是如何进行访问的?【web领域面试题】
[Cloud Residency Co-Creation] HCSD Celebrity Live Streaming – Employment Guide
yolo x 跑起来,详细的不行,且内含800错误解决办法
B站回应HR称“核心用户都是Loser”、求职者是“白嫖党”:已被劝退
抬升市场投资情绪,若羽臣是否还需“自身硬”?
js - the first letter that appears twice
三层交换机配置MSTP协议详解【华为eNSP实验】
C# DirectoryInfo类
字符串与正则表达式(C#)
VRRP+MSTP配置详解【华为eNSP实验】
去掉js代码文件所有注释
交换机链路聚合详解【华为eNSP】
Fiddler(二)-手机抓包502错误解决方法
2022年化工自动化控制仪表考试模拟100题及模拟考试
发现WRH几个表被锁了,怎么办?
大家好,请教一个问题啊,我们通过flinkcdc把Oracle数据同步到doris,目前的问题是,只
菲沃泰科创板上市:市值123亿 宗坚赵静艳夫妇身价76亿