Author

Topic: Python bitcoin library mess - whatever I use does not work (Read 465 times)

member
Activity: 91
Merit: 10
Javascript Developer / Technical writer, blogger
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
full member
Activity: 148
Merit: 106
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?

newbie
Activity: 1
Merit: 0
Yeah i'm just starting out too.
member
Activity: 91
Merit: 10
Javascript Developer / Technical writer, blogger
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

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

Good luck
full member
Activity: 148
Merit: 106
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


Jump to: