遇到TypeError: expected dtype object, got 'numpy.dtype[int64]'问题的时候,百度了一下,发现说更新numba,但是在更新numba的时候又遇到了新的问题。
author:xiao黄
https://blog.csdn.net/Python_Matlab?type=blog
我的numba版本是0.44
更新后的版本是0.53
首先直接更新:
pip install numba==0.53
但是我更新的时候遇到了这个问题
ERROR: Cannot uninstall 'llvmlite'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

所以需要进一步解决,输入下面代码
pip install --ignore-installed llvmlite

最后输入:
>pip install numba==0.53

问题成功解决。
博客讲述遇到TypeError问题,百度建议更新numba,博主numba原版本为0.44,要更新到0.53。直接更新时遇到新问题,通过输入特定代码进一步解决,最终成功更新numba版本。
874

被折叠的 条评论
为什么被折叠?



