我正在使用源代码https://github.com/odoo/odoo/tree/aa0554d224337e1d966479a351a3ed059d297765
在Windows 10(Python版)上
Python 3.8.0 (tags/v3.8.0:fa919fd, Oct 14 2019, 19:21:23) [MSC v.1916 32 bit (Intel)] on win32
我发现错误
e:\source_code\github.com\xxxxxxx\odoo>pip install -r requirements.txt
Ignoring gevent: markers 'sys_platform != "win32" and python_version < "3.7"' don't match your environment
Ignoring gevent: markers 'sys_platform != "win32" and python_version >= "3.7"' don't match your environment
Ignoring greenlet: markers 'python_version < "3.7"' don't match your environment
Ignoring lxml: markers 'sys_platform != "win32" and python_version < "3.7"' don't match your environment
Ignoring lxml: markers 'sys_platform != "win32" and python_version >= "3.7"' don't match your environment
ERROR: Double requirement given: Pillow==6.1.0 (from -r requirements.txt (line 25)) (already in Pillow==5.4.1 (from -r requirements.txt (line 24)), name='Pillow')
e:\source_code\github.com\xxxxxxx\odoo>
如何解决?
答案 0 :(得分:2)
这看起来像是Odoo源代码中的错误:
public void utilMethod(IntStream range, List<Double> values) {
range.forEach(i->i);
}
如果第二行中的条件为true,则显然会导致双重要求。
我建议将其修补为:
IntStream.iterate(0, i->i<10, i->i+1).forEach(System.out::println);
IntStream.iterate(10, i->i>0, i->i-1).forEach(System.out::println);
应该 在所有操作系统和Python版本上都能正常工作。
答案 1 :(得分:1)
我只是摆脱了第24行,而离开了第25行,因为它似乎对此感到满意。
###Pillow==5.4.1
Pillow==6.1.0 ; sys_platform == 'win32' and python_version >= '3.7'
编辑:我改变了主意。如果两者都喜欢,最好使用较新的版本...