How to install steem-python for Windows


I wrote this post, as it is not easy at the moment to install steem-python on Windows using Anaconda 5 with python 3.6.

1. Install Anaconda 5 with python 3.6

  • Go to https://www.anaconda.com/download/ and download the installer for Python 3.6
  • Start the installer (I normally choose that all user can use Python and change the path to C:\Anaconda3)
    image.png
    image.png
    image.png

2. Download the wheel for scrypt-0.8.0

I forked https://bitbucket.org/mhallin/py-scrypt and added Python 3.6 to appveyor.yml after line 33:
image.png
Then i added my forked repository in https://www.appveyor.com/ and started the build process. As a result, you can download the wheel for scrypt:

3. Start the Anaconda Prompt and install steem-python

  • Start the Anaconda Prompt ( You find it under Anaconda3)
  • Install either the scrypt-wheel for 64Bit - Anaconda : pip install scrypt-0.8.0-cp36-cp36m-win_amd64.whl
  • Or install the scrypt-wheel for 32 Bit - Anaconda : pip install scrypt-0.8.0-cp36-cp36m-win_amd32.whl
    image.png
  • Install ujson: conda install ujson
  • Install steem by: pip install steem

4. Using steem-python

  • Enter python into the Anaconda Prompt window
  • set the node with nodes=['https://api.steemit.com']
  • import steem: from steem import Steem
  • create a Steem object: s = Steem(nodes)
  • read the number of created accounts: s.get_account_count()
    image.png

5. Uninstall steem-python

In order to uninstall steem, you have to perform the following steps:

pip uninstall steem voluptuous toml pylibscrypt pipfile maya pendulum  
pytzdata langdetect humanize funcy ecdsa diff_match_patch dateparser  
regex tzlocal ruamel.yaml appdirs scrypt w3lib prettytable

6. Optional - Use environment for installing steem

By creating an environment, the steem installation is kept separated and can be easily removed.
Before proceeding with step 3, apply the following:

conda create --name steemenv

Activate the environment every time by:

activate steemenv

You can now proceed with step 3.

Uninstalling can be performed by:

conda remove --name steemenv --all

Please let me know if something does not work! Thanks for reading.



Posted on Utopian.io - Rewarding Open Source Contributors

H2
H3
H4
Upload from PC
Video gallery
3 columns
2 columns
1 column
14 Comments