python - 安装成功后IfxPy模块导入错误
问题描述
我在安装 IfxPy 时遇到问题。操作系统为windows 64位,运行64位版本的Python 3.7.4。在 pip 安装车轮文件 IfxPy-3.0.3-cp37-cp37m-win_amd64.whl 之后 - https://pypi.org/project/IfxPy/#files 来自解释器的 pip list 命令或 help(modules) 命令显示模块已安装:
>>> help("modules")
Please wait a moment while I gather a list of all available modules... IfxPy [...other modules...]
我试图找到模块的位置,它是
>>> imp.find_module('IfxPy') (<_io.BufferedReader name='C:\\Python\\lib\\site-packages\\IfxPy.pyd'>,
'C:\\Python\\lib\\site-packages\\IfxPy.pyd', ('.pyd', 'rb', 3))
PATH 环境变量包含上述路径。但是,当我尝试从 IDLE 解释器导入模块时,出现错误:
>>> import IfxPy
Traceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
import IfxPy ImportError: DLL load failed: The specified module could not be found.
错误的潜在来源可能是什么?如何解决?感谢帮助。
解决方案
推荐阅读
- google-app-maker - 需要一些帮助来分配答案到谷歌应用程序制造商表单
- python - 使用 Python 连接到远程 Oracle 数据库
- python - 在 JupyterLab 上运行 dash 返回错误
- python-3.x - 如何获得 RMSE 值
- javascript - Google Apps 脚本表 if 声明发送电子邮件
- excel - 在 VBA 中复制和粘贴范围的联合
- vba - 如何在 PowerPoint 上动态创建 ActiveX 文本框
- javascript - 有什么方法可以使文本可选并将自定义操作添加到上下文菜单?
- xml - Powershell:从函数正确返回 XML
- r - 替换向量中不是 %in% 向量的值