故障排查

问题: 未找到dll文件

解决方案:

  1. xlwings32-<version>.dll and xlwings64-<version>.dll are both in the same directory as your python.exe. If not, something went wrong with your installation. Reinstall it with pip or conda, see 安装.

  2. 在加载项或配置表中检查 Interpreter 条目。如果是空的,看看在命令行提示符下输入 python 时是否能够启动一个交互式的Python会话。 如果得到了错误信息 'python' is not recognized as an internal or external command, operable program or batch file., 这时有两个选择:把 python.exe 所在的目录加到windows路径中(参见 https://www.computerhope.com/issues/ch000549.htm), 或者在加载项/配置表的配置中把解释器的全路径(例如 C:\Users\MyUser\anaconda\pythonw.exe)添加进去。

Issue: Files that are saved on OneDrive or SharePoint cause an error to pop up

解决方案:

See the dedicated page about how to configure OneDrive and Sharepoint: OneDrive and SharePoint.

Issue: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

解决方案:

The Python interpreter is not correctly installed or the configuration does not point to the Python interpreter. To fix this:

  1. Verify that a Python interpreter is installed. Python can be installed in any way, including via Conda or virtual environment or the xlwings 1-click installer (part of xlwings PRO).

  2. Check the configuration of xlwings according to its Config Hierarchy.