故障排查#
问题: 未找到dll文件#
解决方案:
xlwings32-<version>.dll
andxlwings64-<version>.dll
are both in the same directory as yourpython.exe
. If not, something went wrong with your installation. Reinstall it withpip
orconda
, see 安装.在加载项或配置表中检查
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: 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:
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).
Check the configuration of xlwings according to its Config Hierarchy.