Python中导入lib Scrypt失败

时间:2017-02-23 16:59:09

标签: python windows winapi pywin32 scrypt

当我尝试在使用pip设置包之后立即从Python导入Scrypt lib时,错误消息是:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\scrypt.py", line 11, in <module>
    _scrypt = cdll.LoadLibrary(imp.find_module('_scrypt')[1])
File "C:\Python27\lib\ctypes\__init__.py", line 431, in LoadLibrary
    return self._dlltype(name)
File "C:\Python27\lib\ctypes\__init__.py", line 353, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 193] %1 nÒo Ú um aplicativo Win32 vßlido

在英文中,消息“WindowsError:[错误193]%1nÒoÚumaplicativoWin32vßlido”表示它不是有效的win32应用程序

在另一台计算机中,当我尝试导入相同的lib时,出现错误:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\scrypt.py", line 11, in <module>
    _scrypt = cdll.LoadLibrary(imp.find_module('_scrypt')[1])
  File "C:\Python27\lib\ctypes\__init__.py", line 440, in LoadLibrary
    return self._dlltype(name)
  File "C:\Python27\lib\ctypes\__init__.py", line 362, in __init__
    self._handle = _dlopen(self._name, mode)
WindowsError: [Error 126] NÒo foi possÝvel encontrar o m¾dulo especificado

在英语中,“NÒoffoipos能力encontrarom¾duloepecificado”这个消息意味着无法找到模块

1 个答案:

答案 0 :(得分:0)

安装OpenSSL将解决您在Windows上的问题,Link