What Will I Learn?
- You will learn how to install python36 from the Ubuntu Console (In Windows)
- You will learn how to install and test steem-python
Requirements
Write here a bullet list of the requirements for the user in order to follow this tutorial.
- Windows 10 version 1607 or later (run winver) 64 Bit
- Internet Connection
- Microsoft Account (Sorry, Not My Decision!)
Difficulty
- Basic
Tutorial Contents
Step 1:
Firstly, we will need to enable developer mode in windows 10, as this feature is considered a 'Developer Feature'.
Open the settings app (Search Bar / Cortana > Settings Trusted Windows Store App)
Click 'Update & Security'
Click 'For Developers'
Select the 'Developer Mode' Radio Button
It will now come up with a dialog asking whether you are sure that you wish to enable developer mode, Select Yes
Now, go to the updates tab and install any pending updates.
Step 2:
Search for "Turn Windows features on or off", this allows you to enable or disable features that may not be default / good for everyone.
Open it and scroll down to Windows Subsystem for Linux (Beta) or Windows Subsystem for Linux and check the box, this allows us to run ubuntu inside windows.
Search CMD then when command prompt opens, type bash, this runs the linux console
Next you need to go to the Microsoft Store (Seach > Microsoft Store)
Search for Ubuntu, click on the first one and install it, this is a minified version of ubuntu ready to be used with a console.
Type bash again, accept any licences and continue. When it asks for a username and password, choose whatever you want.
If you need to re-open it after this, just go search / Cortana > Ubuntu or CMD > bash
Step 3:
Now, after bash is installed, make sure you are in the bash console and type the following commands:
If you are not in bash, it will not work!
sudo add-apt-repository ppa:jonathonf/python-3.6
Press Enter when it asks whether to continue
Now we have to update requirements and libraries.
sudo apt-get update
Now we install the correct version.
sudo apt-get install python3.6
Step 5: Steem-Python
Firstly, we need to install the requirement for the library:
sudo apt-get install libssl-dev
Now, all you need to do is install Steem Python:
python3.6 -m pip install steem
If it is successful, you should be able to run
from steem import Steem-Python
steem_instance = Steem()
steem_instance.get_account('cadawg')['sbd_balance']
If it returns something like xx.xxx SBD
Where x is any number (Not all x's have to be the same)
Congratulations, you can now use steem-python, if you want to get started right away, check out:
https://steem.readthedocs.io/en/latest/
Curriculum
This is my first Steem-Python / Python on windows post, so look forward to more soon, but currently, I have no related tutorials!
Posted on Utopian.io - Rewarding Open Source Contributors