我正在按照 pip+venv 选项卡下指定的here步骤操作。我能够创建虚拟环境并安装所有python级别的依赖项,但是当我导航到/wherever/I/cloned/scipy
并运行python dev.py build
时,我得到了meson.build:1:0: ERROR: Cython compiler 'cython' cannot compile programs
。如果我查一下日志上面说
Compiler stderr:
...
File "/home/me/.venvs/scipy-dev/lib/python3.10/site-packages/pythran/optimizations/pattern_transform.py", line 346, in <module>
getattr(PatternTransform, attr_name) + (known_pattern,))
AttributeError: type object 'PatternTransform' has no attribute 'typePatterns'. Did you mean: 'CallPatterns'?
我如何修复这个问题并构建scipy?
1条答案
按热度按时间yvfmudvl1#
我认为这个问题与Pythran包有关,该包用于优化编译器以提高效率。尝试pip卸载pythran,构建scipy并安装pythran,如果以后需要的话。