module not found error: mybinder interactive notebooks
module not found error: mybinder interactive notebooks
我正在尝试使用 mybinder.org 创建交互式笔记本。这些是我正在采取的步骤:
第 1 步:在 github github link to the simplistic notebook
中上传笔记本
第 2 步:使用 pip freeze > requirement.txt
创建一个 environment.txt 文件并将其上传到同一存储库中。 link to the requirement.txt file
第 3 步:在 mybinder.org 上渲染笔记本。 link to the rendered notebook
笔记本加载后,无法导入任何 numpy 或 pandas 库。我得到 ModuleNotFoundError: No module named 'numpy.这是错误的图片:
我做错了什么?非常感谢任何提示;我已经研究了一段时间...如果有帮助,我会使用 JupyterLab 准备我的笔记本。
这里的语法真的很重要。您尝试制作的配置文件应命名为 requirements.txt
以便 Binder 能够识别。 Yours is named incorrectly requirement.txt
.
将来,您可以转到相关示例 'Python environment with a requirements.txt' here and pressing the green Use this template
here button in the upper right side of the screen. Similarly, you can use all the other examples as templates as well. The purpose and roles of these examples are expanded on here。
或许可以更轻松地启动回购协议
我正在尝试使用 mybinder.org 创建交互式笔记本。这些是我正在采取的步骤:
第 1 步:在 github github link to the simplistic notebook
中上传笔记本第 2 步:使用 pip freeze > requirement.txt
创建一个 environment.txt 文件并将其上传到同一存储库中。 link to the requirement.txt file
第 3 步:在 mybinder.org 上渲染笔记本。 link to the rendered notebook
笔记本加载后,无法导入任何 numpy 或 pandas 库。我得到 ModuleNotFoundError: No module named 'numpy.这是错误的图片:
我做错了什么?非常感谢任何提示;我已经研究了一段时间...如果有帮助,我会使用 JupyterLab 准备我的笔记本。
这里的语法真的很重要。您尝试制作的配置文件应命名为 requirements.txt
以便 Binder 能够识别。 Yours is named incorrectly requirement.txt
.
将来,您可以转到相关示例 'Python environment with a requirements.txt' here and pressing the green Use this template
here button in the upper right side of the screen. Similarly, you can use all the other examples as templates as well. The purpose and roles of these examples are expanded on here。