安装pySCENIC报错:AttributeError: module 'numpy' has no attribute 'object'.
刚开始安装pySCENIC的代码如下:
conda create -n pyscenic
conda activate pyscenic
pip install pyscenic
检查pySCENIC是否安装成功:
pyscenic -h
发现有以下错误:
AttributeError: module 'numpy' has no attribute 'object'.
结果google一搜索,发现是pySCENIC的代码中用了numpy过时的命令。
重新安装pySCENIC:
conda env remove -n pyscenic
conda create -n pyscenic python=3.8.1
conda activate pyscenic
pip install numpy==1.19.5
pip install pandas==1.3.5
pip install numba==0.56.4
pip install pyscenic==0.12.1
然后再检查pySCENIC是否安装成功:
pyscenic -h

pyscenic -h的结果输出
可以成功运行了!
以上命令参考以下内容:
【记录向】经验分享:Pyscenic软件不兼容报错解决方法_attributeerror: module 'numpy' has no attribute 'o-CSDN博客
AttributeError: module 'numpy' has no attribute 'object'.[BUG] · Issue #474 · aertslab/pySCENIC (github.com)