我正在尝试为开发 numba 建立一个 conda 环境。我克隆了 git repo 并以建议的方式设置环境,例如:
$ conda create -n numba-dev python numpy llvmlite funcsigs # create numba env
$ source activate numba-dev # activate the numba-dev environment
(numba-dev)$ python setup.py install # install numba to the env
(numba-dev)$ ./runtests.p
...
Ran 1947 tests in 39.884s
FAILED (failures=6, errors=1522, skipped=10)
大多数错误就像
Internal error:
AttributeError: 'Module' object has no attribute 'get_global'
File "numba/targets/randomimpl.py", line 221
或者
AttributeError: Failed at nopython (nopython mode backend)
'Module' object has no attribute 'get_global'
get_global
在第 268 行出现一次。numba/targets/base.py
但它的上下文并没有启发我。