首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Odoo 12中没有名为Slugify的模块

Odoo 12中没有名为Slugify的模块
EN

Stack Overflow用户
提问于 2019-09-05 16:08:44
回答 1查看 392关注 0票数 2

我偶然发现了一个来自GitHub的模块,我完成了安装步骤,但我得到了这个错误:

代码语言:javascript
复制
Unable to install module because an external dependency is not met: No module named slugify

但是,安装了Slugify:

代码语言:javascript
复制
Requirement already satisfied: python-slugify in c:\program files (x86)\python37-32\lib\site-packages (from -r requirements.txt (line 1)) (3.0.3)
Requirement already satisfied: text-unidecode==1.2 in c:\program files (x86)\python37-32\lib\site-packages (from python-slugify->-r requirements.txt (line 1)) (1.2)

我使用以下参数进行测试:

代码语言:javascript
复制
OS: Windows 10 Pro 64 Bit
Odoo 12.0-20181022 (Community Edition)

有人能告诉我我哪里失败了吗?

提前感谢您的帮助。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2019-09-06 06:01:15

打开Odoo使用的相同python虚拟环境并运行:

代码语言:javascript
复制
try:
    import slugify
except ModuleNotFoundError:
    import sys
    print("Module not found under the following directories: %s"%sys.path)
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57801080

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档