首页 > 解决方案 > 在 jupyter notebook 中导入神经套件时出错

问题描述

在 Jupyter notebook 中,我必须导入神经套件。

有这个错误:

ImportError:没有名为neurokit的模块

所以我尝试了:

!pip install neurokit

但还有另一个错误:

IOError:[Errno 2] 没有这样的文件或目录:'README.md'

谁能帮我这个?

这是错误:

!pip install neurokit

Collecting neurokit
  Using cached https://files.pythonhosted.org/packages/aa/e4/aac4c53fb12d52c292988897bff3d003a5798ec582b267f57057bfdf6c31/neurokit-0.2.0.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\dell\appdata\local\temp\pip-install-i17inb\neurokit\setup.py", line 39, in <module>
        long_description = open('README.md').read(),
    IOError: [Errno 2] No such file or directory: 'README.md'

标签: pythonpipjupyter

解决方案


这绝对是安装包中的一个错误——他们忘记包含README.md在包中。总的来说,他们在 PyPI 的安装包相当老旧,最新的是 2017 年的。

直接从存储库安装:

pip install numpy
pip install git+https://github.com/neuropsychology/NeuroKit.py#egg=neurokit

推荐阅读