简体   繁体   English

PyCharm找不到已安装软件包的模块

[英]PyCharm can't find the module of an installed package

I've installed the package python-bitcoinlib in PyCharm however it does not recognize the module bitcoin and gives the following error: 我已经在PyCharm中安装了python-bitcoinlib软件包,但是它无法识别模块bitcoin并给出以下错误:

 Traceback (most recent call last):
  File "C:/Users/SMA/PycharmProjects/HW2/keygen.py", line 3, in <module>
    from bitcoin.wallet import CBitcoinSecret, P2PKHBitcoinAddress
  File "C:\Users\SMA\PycharmProjects\HW2\venv\lib\site-packages\bitcoin\wallet.py", line 29, in <module>
    import bitcoin.core.key
  File "C:\Users\SMA\PycharmProjects\HW2\venv\lib\site-packages\bitcoin\core\key.py", line 33, in <module>
    _ssl = ctypes.cdll.LoadLibrary(ctypes.util.find_library('ssl') or 'libeay32')
  File "C:\Users\SMA\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 434, in LoadLibrary
    return self._dlltype(name)
  File "C:\Users\SMA\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 356, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

But I can see the bitcoin folder in the imported libraries. 但是我可以在导入的库中看到bitcoin文件夹。

PyCarm

Does anybody has any hints? 有人有什么提示吗?

In this case the cause of the problem was the missing "libeay32.dll" . 在这种情况下,问题的原因是缺少“ libeay32.dll” Problem was solved by downloading it from https://indy.fulgan.com/SSL/ 通过从https://indy.fulgan.com/SSL/下载来解决问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM