安裝pySCENIC報錯

安裝pySCENIC報錯:AttributeError: module 'numpy' has no attribute 'object'.

剛開始安裝pySCENIC的代碼如下:

conda create -n pyscenic
conda activate pyscenic
pip install pyscenic

檢查pySCENIC是否安裝成功:

pyscenic -h

發(fā)現(xiàn)有以下錯誤:

AttributeError: module 'numpy' has no attribute 'object'.

結(jié)果google一搜索,發(fā)現(xiàn)是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的結(jié)果輸出

可以成功運行了!

以上命令參考以下內(nèi)容:

【記錄向】經(jīng)驗分享:Pyscenic軟件不兼容報錯解決方法_attributeerror: module 'numpy' has no attribute 'o-CSDN博客
AttributeError: module 'numpy' has no attribute 'object'.[BUG] · Issue #474 · aertslab/pySCENIC (github.com)

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容