jupyter-lab - Anaconda / Jupyter lab:更改目录后出现AttributeError
问题描述
import xlwings as xw
wb = xw.Book()
上面的代码给了我以下错误。
AttributeError: partially initialized module 'xlwings' has no attribute 'Book'
(most likely due to a circular import)
起初,我认为这是由于通过更新配置文件更改了启动文件夹。
jupyter-notebook_config.py
...
## The directory to use for notebooks and kernels.
# Default: ''
#c.NotebookApp.notebook_dir = 'E:\python\jupyterlab'
...
但是当代码没有在默认文件夹(c:\Users***)中运行时,它给了我同样的错误。
请帮我。
解决方案
推荐阅读
- python - 使用 Django 将联系表发送到邮件 ID 和 PostgreSQL 数据库
- python - 我想在另一个函数中使用一个函数的结果
- struts2 - 如何在 struts2 中使用 JWT
- java - 应用程序启动后初始化spring bean字段
- python - 将 add_edges_from 与 networkx-python 一起使用时缺少边缘
- javascript - 刷新后文本不会隐藏任何人都可以帮助我。我必须点击按钮
- arrays - 希望从 txt 文件中读取十六进制值
- python - Pandas - 从 Dataframe 中转换 json 格式字符串
- python - 为 wav 到 mp3 编码创建输入和输出管道
- c# - 使用 Monitor 语句防止竞态条件进入 SQL 命令的最佳条件