我使用JupyterLab,jupyter notebook,并尝试导入脚本。脚本位于notebook的目录中。ImportError: No module named 'irt_01_generate_sample_data'
另一方面:当我运行终端并导入脚本时,一切正常。我应该怎么做才能导入脚本?
目前正在通过Eric Mathes提供的Python速成课程 无法按照this is the error I have been receiving第243页的要求从另一个文件导入模块 我不确定是否将ipynb更改为py,这是否与在edit: this is a screenshot of the jupyterlab with notebook open and the file directory
在import modin.pandas as modin_pd行上,我得到了ModuleNotFoundError: No module named 'modin'。我使用的是诗歌和JupyterLab。如果我在单元格中输入!poetry add modin,ValueError会说Package modin is already present。因此它无法安装modin,因为它已经安装,但也无法导入它。我遗漏了什么显而易见的解决方案吗?
pip freeze命令还显示要安装的mod