Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: lukaexpl on October 19, 2017, 03:50:41 PM



Title: Python bitcoin library mess - whatever I use does not work
Post by: lukaexpl on October 19, 2017, 03:50:41 PM
I watched some videos, decided I should get familiar with under the hood mechanics of Bitcoin through Python and and the usual way to install Python bitcoin library was ...

pip install bitcoin

That worked only as far as import bitcoin being recognized by shell and Jupyter notebook but no commands that I expected (for example random_key(), privtopub() etc.) were available.
Tried afterwards:

pip install pybitcointools

Same story.

Did some reading and found out there are conflicting libraries so went to the github repository of
https://github.com/vbuterin/pybitcointools

Installed directly from downloaded .zip file after more reading with

pip install .

after going to the unzipped folder

Still the stuff does not work as expected.

Help a bro out of this mess!
Questions:
1. What python bitcoin library is the most recent/relevant, feature rich?
2. If I installed another one before the 'best' one can they conflict?
3. How do I uninstall an undesired one?
4. Where is a good guide on this pip install nightmare?

Thanks




Title: Re: Python bitcoin library mess - whatever I use does not work
Post by: cryptowoman2017 on October 19, 2017, 09:36:21 PM
HI, I don't know the answer to your questions 1 and 2, but I did some stuff with Python, so maybe this helps for question 3 and 4:

To uninstall a package: use pip uninstall <packagename>

Here is a link to the pip docs: https://pip.pypa.io/en/stable/

Good luck


Title: Re: Python bitcoin library mess - whatever I use does not work
Post by: Da Hulk 100 on October 19, 2017, 11:43:45 PM
Yeah i'm just starting out too.


Title: Re: Python bitcoin library mess - whatever I use does not work
Post by: lukaexpl on October 20, 2017, 10:06:55 AM
I have one additional question.

Suppose I do private/public key generation in Python within ad hoc Python shell (so no file reading/writing) on an offline Raspbery PI.
Are Python shell results/outputs saved anywhere?



Title: Re: Python bitcoin library mess - whatever I use does not work
Post by: cryptowoman2017 on October 20, 2017, 09:43:57 PM
I have one additional question.

Suppose I do private/public key generation in Python within ad hoc Python shell (so no file reading/writing) on an offline Raspbery PI.
Are Python shell results/outputs saved anywhere?



You probably need to write a function that saves them somewhere