BY JIMMY SONG
Repository for the book to be published by O'Reilly.
This book will be licensed under CC-BY-NC-ND once the book is published.
To get the most out of this book, you’ll want to create an environment where you can run the example code and do the exercises. Here are the steps required to set everything up:
https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64.exe
https://www.python.org/ftp/python/3.6.2/python-3.6.2-macosx10.6.pkg
2. Install pip by downloading this script: https://bootstrap.pypa.io/get-pip.py.
$ python3 get-pip.py
4. Install Git. The commands for downloading and installing it are at https://git-scm.com/downloads.
$ git clone https://github.com/jimmysong/programmingbitcoin
$cd programmingbitcoin
$ python3 -m pip install virtualenv
Linux/MacOS:
$ virtualenv -p python3 .venv
$ . .venv/bin/activate
$ (.venv) $ pip install -r requirements.txt
Windows:
$ C:\programmingbitcoin> virtualenv -p
$ C:\PathToYourPythonInstallation\Python.exe .venv
$ C:\programmingbitcoin> .venv\Scripts\activate.bat
$ C:\programmingbitcoin> pip install -r requirements.txt
$ (.venv) $ jupyter notebook
[I 15:04:41.484 NotebookApp] The port 8888 is already in use, trying another port.
[I 15:04:41.485 NotebookApp] Serving notebooks from local directory: /Users/git/programmingbitcoin
[I 15:04:41.485 NotebookApp] Jupyter Notebook 6.4.5 is running at:
[I 15:04:41.485 NotebookApp] http://localhost:8889/?token=b89cafc45270f550caf6ab53184e307be942ed75e51540e8
[I 15:04:41.485 NotebookApp] or http://127.0.0.1:8889/?token=b89cafc45270f550caf6ab53184e307be942ed75e51540e8
[I 15:04:41.485 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 15:04:41.500 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/git/Library/Jupyter/runtime/nbserver-15734-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=f0f7fee38102213899079ad0c7086b84a8a2c654bc61937c
or http://127.0.0.1:8888/?token=f0f7fee38102213899079ad0c7086b84a8a2c654bc61937c
You should have a browser open up automatically, as shown in Figure P-1.
MORE INFO AT: https://learning.oreilly.com/library/view/programming-bitcoin/9781492031482/preface01.html#setting_up