我遇到了来自GitHub的模块,并经历了安装步骤,但出现此错误:
Unable to install module because an external dependency is not met: No module named slugify
但是,已安装Slugify:
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)
我正在使用以下参数进行测试:
OS: Windows 10 Pro 64 Bit
Odoo 12.0-20181022 (Community Edition)
谁能告诉我我失败了吗?
在此先感谢您的帮助。
最佳答案
打开Odoo使用并运行的相同python虚拟环境:
try:
import slugify
except ModuleNotFoundError:
import sys
print("Module not found under the following directories: %s"%sys.path)