相关疑难解决方法(0)

Jupyter和Python中的sys.path不同 - 如何在Jupyter中导入自己的模块?

在Jupyter我没有加载我自己的小模块但是在python/bpython中一切都很好.打字时

import sys
print(sys.path)
Run Code Online (Sandbox Code Playgroud)

我的模块的路径不会在Jupyter中显示,但在python/bpython中它仍然存在.

我在用:

  1. .bashrc中的PYTHONPATH包含我的模块,
  2. Jupyter和bpython在virtualenv里面.

最相似的问题是这个 无法在jupyter笔记本中导入模块; 错误的sys.path

如何配置Jupyter自动加载我的模块?

python pythonpath jupyter

47
推荐指数
4
解决办法
6万
查看次数

标签 统计

jupyter ×1

python ×1

pythonpath ×1