Bitcoin Forum
April 26, 2024, 03:44:27 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Python bitcoin library mess - whatever I use does not work  (Read 445 times)
lukaexpl (OP)
Full Member
***
Offline Offline

Activity: 148
Merit: 106


View Profile
October 19, 2017, 03:50:41 PM
 #1

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


1714103067
Hero Member
*
Offline Offline

Posts: 1714103067

View Profile Personal Message (Offline)

Ignore
1714103067
Reply with quote  #2

1714103067
Report to moderator
1714103067
Hero Member
*
Offline Offline

Posts: 1714103067

View Profile Personal Message (Offline)

Ignore
1714103067
Reply with quote  #2

1714103067
Report to moderator
1714103067
Hero Member
*
Offline Offline

Posts: 1714103067

View Profile Personal Message (Offline)

Ignore
1714103067
Reply with quote  #2

1714103067
Report to moderator
There are several different types of Bitcoin clients. The most secure are full nodes like Bitcoin Core, which will follow the rules of the network no matter what miners do. Even if every miner decided to create 1000 bitcoins per block, full nodes would stick to the rules and reject those blocks.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
cryptowoman2017
Member
**
Offline Offline

Activity: 88
Merit: 10

Javascript Developer / Technical writer, blogger


View Profile WWW
October 19, 2017, 09:36:21 PM
Last edit: October 19, 2017, 09:53:39 PM by cryptowoman2017
 #2

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
Da Hulk 100
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
October 19, 2017, 11:43:45 PM
 #3

Yeah i'm just starting out too.
lukaexpl (OP)
Full Member
***
Offline Offline

Activity: 148
Merit: 106


View Profile
October 20, 2017, 10:06:55 AM
 #4

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?

cryptowoman2017
Member
**
Offline Offline

Activity: 88
Merit: 10

Javascript Developer / Technical writer, blogger


View Profile WWW
October 20, 2017, 09:43:57 PM
 #5

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
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!