0

Which version of python should I use? When running pip3 install python-bitcoinlib I get 'Requirement already satisfied'. I run on Ubuntu using WSL in Windows 10. I have this error:

>>> from bitcoin.rpc import RawProxy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\Rony\AppData\Local\Programs\Python\Python37\lib\site-packages\bitcoin\rpc.py", line 48, in <module>
    from bitcoin.wallet import CBitcoinAddress, CBitcoinSecret
  File "C:\Users\Rony\AppData\Local\Programs\Python\Python37\lib\site-packages\bitcoin\wallet.py", line 33, in <module>
    import bitcoin.core.key
  File "C:\Users\Rony\AppData\Local\Programs\Python\Python37\lib\site-packages\bitcoin\core\key.py", line 34, in <module
>
  _ssl = ctypes.cdll.LoadLibrary(ctypes.util.find_library('ssl') or 'libeay32')
  File "C:\Users\Rony\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 442, in LoadLibrary
    return self._dlltype(name)
  File "C:\Users\Rony\AppData\Local\Programs\Python\Python37\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found
13
  • What's the exact error it is printing when failing to import?
    – Mercedes
    Oct 4, 2021 at 5:24
  • @Mercedes >>> from bitcoin.rpc import RawProxy Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'bitcoin' Oct 4, 2021 at 13:26
  • Are you sure you are using Python 3?
    – Mercedes
    Oct 4, 2021 at 20:17
  • import sys; sys.version;
    – Mercedes
    Oct 4, 2021 at 20:19
  • @Mercedes '3.8.10 (default, Jun 2 2021, 10:49:15) \n[GCC 9.4.0]' Oct 4, 2021 at 21:15

1 Answer 1

0

Check if its already listed in pip list

If yes, remove it using pip uninstall python-bitcoinlib

Then try pip3 install python-bitcoinlib

Also be careful with python packages, few might be malwares with similar names: https://arstechnica.com/gadgets/2021/07/malicious-pypi-packages-caught-stealing-developer-data-and-injecting-code/

1
  • I did it and I have the same error. Maybe I should remove all python from my windows and install python 3 again... Oct 6, 2021 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.