1200wd / bitcoinlib

Bitcoin and other Cryptocurrencies Library for Python. Includes a fully functional wallet, Mnemonic key generation and management and connection with various service providers to receive and send blockchain and transaction information.
http://bitcoinlib.readthedocs.io/
GNU General Public License v3.0
606 stars 201 forks source link

Could not build wheels for fastecdsa #292

Closed BalogunMalikO closed 1 year ago

BalogunMalikO commented 1 year ago

How can I use bitcoinlib on macbook? I get this error evrytime i try to pip install bitcoinlib

AlexOQ commented 1 year ago

The root cause is with fastecdsa package, the fix should come from them. But also, would be nice to have bitcoinlib version w/o this dependency (if possible), in case fastecdsa team takes their time.

EDIT: OS: Linux pop-os 6.2.6-76060206-generic #202303130630~1681329778~22.04~d824cd4 Poetry: 1.4.2 Python: 3.10.6

fled-dev commented 1 year ago

Hi, I had this error too. To fix that, simply run this command: sudo apt-get install libgmp-dev.

Helped for me at least. Let me know if you need any help / it does not work.

fled-dev commented 1 year ago

By the way, this is not an issue only with MacBooks. I also had this issue on my Ubuntu 23.04 server.

mccwdev commented 1 year ago

You need to install some required packages first before installing Bitcoinlib, see https://github.com/1200wd/bitcoinlib#pre-requirements-linux.

I did not run into any errors when installing on Ubuntu server 23.04

superggn commented 1 year ago

try use a virtual environment and change the cache dir

python3 -m venv <the path you want to store the virtual environment>

pip install --cache-dir ~/<specify any temp cache dir> bitcoinlib

works for me