pybitcointools
pybitcointools copied to clipboard
After pip installing it, I can't import neither bitcoin, nor pybitcointools
Python 3.6.0 |Anaconda 4.3.1 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information.
from pybitcointools import * Traceback (most recent call last): File "<pyshell#0>", line 1, in
from pybitcointools import * File "C:\Users\Pig\Anaconda3\lib\site-packages\pybitcointools_init_.py", line 1, in from main import * ModuleNotFoundError: No module named 'main'
from bitcoin import * Traceback (most recent call last): File "<pyshell#1>", line 1, in
from bitcoin import * ModuleNotFoundError: No module named 'bitcoin'
Try to install using:
pip install git+https://github.com/vbuterin/pybitcointools
Worked for me with this:-
pip install bitcoin
pip install bitcoin
Worked for me as well
It is end of life for pybitcointools as author has stated in last commit.
However, if you manually clone code from this commit: https://github.com/vbuterin/pybitcointools/tree/aeb0a2bbb8bbfe421432d776c649650eaeb882a5
You will be able to install version that was working before.
pip install bitcoin , worked for me ..!!!
After I started getting the errors mentioned, I found I had to re-install Pybitcointools using pip
, pointing it at the last commit hash before the repository was deleted:
pip install git+https://github.com/vbuterin/pybitcointools.git@aeb0a2bbb8bbfe421432d776c649650eaeb882a5
I resolved my issues forking the project (into https://github.com/robermann/pybitcointools) and changing its module name: from 'bitcoin' to 'pybitcointools'.
If you want to give it a try: pip install git+https://github.com/robermann/pybitcointools
My pip freeze: bitcoin==1.1.42 pybitcointools==1.1.42 (installed as above) python-bitcoinlib==0.10.1
i tried installing using methods here and the install succeeded, however when i try to run a simple example:
import pybitcointools
privkey = pybitcointools.random_key()
i get:
File "/Users/x/venv/lib/python3.6/site-packages/pybitcointools/init.py", line 1, in
from main import * ModuleNotFoundError: No module named 'main'
I've run with success this whole script: https://github.com/robermann/bitcoinbook/blob/82b91869e73e13745da62fc1b79cb164104113b9/code/key-to-address-ecc-example.py
The init I have is: C:\apps\Python37-32\Lib\site-packages\pybitcointools\__init__.py
What OS do you have?
simply
- install bitcoin via pip as stated above
- replace
pybitcointools
withbitcoin
in your code …works for me.