Bitcoin Forum
September 19, 2018, 07:53:50 PM *
News: ♦♦ Bitcoin Core users must update to 0.16.3 [Torrent]. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Python bitcoin library mess - whatever I use does not work  (Read 349 times)
lukaexpl
Full Member
***
Offline Offline

Activity: 148
Merit: 100


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


1537386830
Hero Member
*
Offline Offline

Posts: 1537386830

View Profile Personal Message (Offline)

Ignore
1537386830
Reply with quote  #2

1537386830
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1537386830
Hero Member
*
Offline Offline

Posts: 1537386830

View Profile Personal Message (Offline)

Ignore
1537386830
Reply with quote  #2

1537386830
Report to moderator
cryptowoman2017
Member
**
Offline Offline

Activity: 88
Merit: 10

Javascript Developer / Technical writer, blogger


View Profile WWW
October 19, 2017, 09:36:21 PM
 #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
Full Member
***
Offline Offline

Activity: 148
Merit: 100


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:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!