create account

MMoSP001E- install steem python with anaconda by dappcoder

View this thread on: hive.blogpeakd.comecency.com
· @dappcoder ·
$1.48
MMoSP001E- install steem python with anaconda
<h1>MMoSP001E- install steem python with anaconda</h1>

中文版本:[MMoSP001C- Anaconda 安装 steem-python 开发环境](/@dappcoder/mmosp001-anaconda-steem-python)

[steem-python](https://github.com/steemit/steem-python) :It is the official Python Library of [Steem](https://steem.io), which has a bip38 encrypted wallet and a practical cli utility named 'steempy'.

'steem-python' requires Python3.5+. Here, anaconda is used to install it and provide cross platform management of Python development environment. This allows Windows developers and Linux / Mac OS developers to devote themselves to similar coding operations.

MacOS10.14 install Anaconda3-2019.10 
-----------------------------
Official address:https://repo.anaconda.com/archive/Anaconda3-2019.10-MacOSX-x86_64.sh
If the official download is slow, you can use the image of Tsinghua University:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.10-MacOSX-x86_64.sh
```shell
$ cd ~
$ wget https://repo.anaconda.com/archive/Anaconda3-2019.10-MacOSX-x86_64.sh
$ bash Anaconda3-2019.10-MacOSX-x86_64.sh
$ source ~/.bash_profile
(base) ~$ python -V
(base) ~$ pip -V
```

ubuntu18.04 install Anaconda3-2019.10 
-----------------------------
Official address:https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
If the official download is slow, you can use the image of Tsinghua University:https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.10-Linux-x86_64.sh
```shell
$ cd ~
$ sudo apt-get remove python3 python3-dev python3-pip
$ sudo apt-get install libffi-dev libssl-dev make
$ wget https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh
$ sh ./Anaconda3-2019.10-Linux-x86_64.sh
$ source ~/.bashrc
(base) ~$ python -V
(base) ~$ pip -V 
```

Anaconda3 install steem-python
-----------------------------
The default installation mode of anaconda3 will automatically enter the python development environment of anaconda3 after the user logs in.

If there is no default anaconda3 environment, you can manually enter the anaconda3 environment:`(base) ~$ conda activate`
Quit Anaconda3 environment:`(base) ~$ conda deactivate`
```shell
$ cd ~
$ conda activate
(base) ~$ conda config --add channels conda-forge
(base) ~$ conda install cryptography
(base) ~$ git clone https://github.com/steemit/steem-python
(base) ~$ cd steem-python
(base) ~$ make install
```
Note: package installation (`pip install steem`) is error frequently

Using the cli tool 'steempy'
-------------------
help:`steempy --help`
set API node:`(base) ~$ steempy set nodes https://anyx.io,https://api.steemit.com`
create wallet password:`$ steempy changewalletpassphrase`
add steem account key:`$ steempy addkey`
list accounts in wallet:$ steempy listaccounts
```info
+-----------+---------+-----------------------------------+
| Name | Type | Available Key |
+-----------+---------+-----------------------------------+
| ddxxxxnk | active | STMxxxxxx9yyE |
| ddnbbbbnk | posting | STM87YzixbssssEyyfU |
+-----------+---------+-----------------------------------+
```
set wallet default account:$ steempy set default_account testdappcoder
set steem vote weight:$ steempy set default_vote_weight 88
list config:$ steempy config
```info
----------------------------------------------+
| Key | Value |
+---------------------+-------------------------+
| nodes | https://anyx.io,https://api.steemit.com |
| default_account | testdappcoder |
| default_vote_weight | 88 |
+---------------------+-------------------+
```

Demo a robot to scan the latest voting data(print_live_votes.py):
--------------------------------------
```python
from steem.blockchain import Blockchain
from steem.post import Post

blockchain = Blockchain()
stream = map(Post, blockchain.stream(filter_by=['vote']))
for vote in stream:
    print('vote:',vote)
```
Run it:`python print_live_votes.py`
Results consistent with expectations:
![bfibnr.png](https://img.esteem.app/bfibnr.png)


# English list:
[MMoSP000E-< make money on steem-python > Preface](/@dappcoder/mmosp000-less-than-make-money-on-steem-python-greater-than-preface)

# 中文列表
#cn #hive-180932 #chinese #hive-143316
[MMoSP000C-《steem-python赚钱实战教程》序言](/@dappcoder/mmosp000-steem-python)
[MMoSP001C- Anaconda 安装 steem-python 开发环境](/@dappcoder/mmosp001-anaconda-steem-python)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 4 others
properties (23)
authordappcoder
permlinkmmosp001e-install-steem-python-with-anaconda
categoryesteem
json_metadata{"links":["https://github.com/steemit/steem-python","https://steem.io","https://repo.anaconda.com/archive/Anaconda3-2019.10-MacOSX-x86_64.sh","https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.10-MacOSX-x86_64.sh","https://repo.anaconda.com/archive/Anaconda3-2019.10-MacOSX-x86_64.sh","https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh","https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/Anaconda3-2019.10-Linux-x86_64.sh","https://repo.anaconda.com/archive/Anaconda3-2019.10-Linux-x86_64.sh","https://github.com/steemit/steem-python","https://anyx.io,https://api.steemit.com","https://anyx.io,https://api.steemit.com"],"image":["https://img.esteem.app/bfibnr.png"],"tags":["esteem","hive-13953","steemdevs","community","programming","sct","dblog"],"app":"esteem/2.2.2-surfer","format":"markdown+html","community":"esteem.app"}
created2020-02-07 08:38:09
last_update2020-02-07 08:38:09
depth0
children3
last_payout2020-02-14 08:38:09
cashout_time1969-12-31 23:59:59
total_payout_value0.736 HBD
curator_payout_value0.748 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,281
author_reputation9,480,331,507,174
root_title"MMoSP001E- install steem python with anaconda"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id95,190,700
net_rshares5,745,501,069,099
author_curate_reward""
vote details (68)
@church-of-god ·
# According to the Bible, *In Matthew 17: 1-5, was Matthew in the mountain with Jesus?*
***(Sorry for sending this comment. We are not looking for our self profit, our intentions is to preach the words of God in any means possible.)***
https://youtu.be/NjhaK5Z7Sm8
https://i.postimg.cc/SxmKZFY2/image.jpg
Comment what you understand of our Youtube Video to receive our full votes. We have 30,000 #SteemPower. It's our little way to **Thank you, our beloved friend.**  
Check our [Discord Chat](https://discord.gg/vzHFNd6) 
Join our Official Community: https://beta.steemit.com/trending/hive-182074
👍  
👎  
properties (23)
authorchurch-of-god
permlink379lo1ln82f
categoryesteem
json_metadata""
created2020-02-07 08:46:24
last_update2020-02-07 08:46:24
depth1
children0
last_payout2020-02-14 08:46:24
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length599
author_reputation-10,142,640,475,011
root_title"MMoSP001E- install steem python with anaconda"
beneficiaries[]
max_accepted_payout10,000.000 HBD
percent_hbd100
post_id95,190,885
net_rshares-24,176,298,531
author_curate_reward""
vote details (2)
@dappcoder ·
!shop
properties (22)
authordappcoder
permlinkre-dappcoder-202027t16438550z
categoryesteem
json_metadata{"tags":["esteem","hive-13953","steemdevs","community","programming","sct","dblog"],"app":"esteem/2.2.2-surfer","format":"markdown+html","community":"esteem.app"}
created2020-02-07 08:43:12
last_update2020-02-07 08:43:12
depth1
children0
last_payout2020-02-14 08:43:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length5
author_reputation9,480,331,507,174
root_title"MMoSP001E- install steem python with anaconda"
beneficiaries
0.
accountesteemapp
weight300
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id95,190,811
net_rshares0
@esteemapp ·
**Yay!** <br>Your post has been **boosted with ESTM**. Keep up the good work! <br>Dear reader, Install [Android](https://play.google.com/store/apps/details?id=app.esteem.mobile.android), [iOS](https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=1451896376&mt=8) Mobile app or [Windows, Mac, Linux](https://github.com/esteemapp/esteem-surfer/releases) Surfer app!<br>Learn more: https://esteem.app <br>Join our discord: https://discord.me/esteem
properties (22)
authoresteemapp
permlinkre-202027t11454218z
categoryesteem
json_metadata{"tags":["esteem"],"app":"esteem/2.2.2-welcome","format":"markdown+html","community":"esteem.app"}
created2020-02-07 10:45:42
last_update2020-02-07 10:45:42
depth1
children0
last_payout2020-02-14 10:45:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length459
author_reputation420,443,679,514,793
root_title"MMoSP001E- install steem python with anaconda"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id95,193,460
net_rshares0