文章目录
前言
phy是神经科学领域一个开源的可视化工具,为大规模神经记录信号提供图形用户界面和手工分选工具。本篇文章是根据phy官方文档的安装过程,存档方便下次重装环境,供大家参考。
Installation instructions
Run the following commands in a terminal:(直接在anaconda prompt中运行)
- Create a new conda environment with the conda dependencies: 指定python版本为3.11(小于3.12)
conda create -n phy2 -y cython dask h5py joblib matplotlib numpy pillow pip pyopengl pyqt pyqtwebengine pytest python=3.11.9 qtconsole requests responses scikit-learn scipy traitlets
debug ModuleNotFoundError: No module named ‘imp’
报错原因:imp模块从3.4后改为importlib,3.12后完全弃用
解决方案:
a. (推荐)环境中装小于3.12版本的python
b. 前往报错文件(plugin.py)中将imp改为importlib,注意开头的import部分和后面使用到的部分imp.xx都要修改。作者修改完后,gui能正常打开,但是有