Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/298.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Odoo 12中没有名为Slugify的模块_Python_Windows_Odoo_Odoo 12_Slugify - Fatal编程技术网

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

Python Odoo 12中没有名为Slugify的模块,python,windows,odoo,odoo-12,slugify,Python,Windows,Odoo,Odoo 12,Slugify,我在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 (fro

我在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)

您使用的是源代码还是可执行文件?Slugify是通过“pip3安装python-Slugify”安装的。我的意思是Odoo,您如何运行itOdoo作为git源代码安装的您是对的。错误是我为另一个python环境安装了slugify。现在它工作得很好。非常感谢。