Writing the video-sharing smart contract

Without further ado, let's set up our smart contract development platform:

  1. First things first, we set up our virtual environment as follows:
$ virtualenv -p python3.6 videos-venv$ source videos-venv/bin/activate(videos-venv) $
  1. Then we install Web3, Populus, and Vyper:
(videos-venv) $ pip install eth-abi==1.2.2(videos-venv) $ pip install eth-typing==1.1.0(videos-venv) $ pip install py-evm==0.2.0a33(videos-venv) $ pip install web3==4.7.2(videos-venv) $ pip install -e git+https://github.com/ethereum/populus#egg=populus(videos-venv) $ pip install vyper
The latest version of Vyper is 0.1.0b6, which breaks Populus. The developer needs some time to fix this. If the bug has not been fixed by the time you ...

Get Hands-On Blockchain for Python Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.