ModuleNotFoundError:运行lektor时没有名为“markdown”的模块

2024-05-23 14:00:12 发布

您现在位置:Python中文网/ 问答频道 /正文

当运行lektor服务器来部署和查看我的网站时,它报告在安装时没有标记。你知道吗

/usr/local/lib/lektor/lib/python3.7/site-packages/watchdog/utils/bricks.py:175: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working

  class OrderedSet(collections.MutableSet):
Traceback (most recent call last):

...

  File "/home/nick/swingrock.be/lektor/packages/tipue-content-file-generator/lektor_tipue_content_file_generator.py", line 7, in <module>
    import markdown

ModuleNotFoundError: No module named 'markdown'

但是markdown已经安装,你可以在这里看到它的版本

nick@nick-VirtualBox:~/swingrock.be/lektor$ markdown --version

This is Markdown, version 1.0.1.
Copyright 2004 John Gruber
http://daringfireball.net/projects/markdown/

有什么我遗漏的步骤吗?你知道吗


Tags: infrompyislibpackagesbecontent
1条回答
网友
1楼 · 发布于 2024-05-23 14:00:12

您似乎安装了Markdown的Perl implementation。但是,您的脚本似乎需要Python implementation,并且没有找到它,因为您没有安装该实现。您可以使用以下命令安装它(请确保以具有必要权限的用户身份运行该命令):

pip install markdown

相关问题 更多 >