How to install steem-python on windows

in #python8 years ago (edited)

There are a lot of posts about installing steem-python on windows.

What is the source of the problems?

steem-python needs pycrypto. pycrypto has seen its last update in 20 Jun 2014. It has 112 unsolved issues and 54 open pull requests. 20 open issues are about installing pycrypto on windows.

Solution

The solution is to use Anaconda/Miniconda and to
install pycrypto from conda-forge. In the feedstock, four patches are applied to the source in order to fix all problems.

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. Start the Anaconda Prompt and add the conda-forge channel

  • Start the Anaconda Prompt ( You find it under Anaconda3)
  • Add the conda-forge channel by entering the following into the prompt:
conda config --add channels conda-forge

3. Install steem-python

There are now three different ways to install python-steem.

3.1. Install steem-python with conda

  • Open the Anaconda Prompt ( You find it under Anaconda3)
  • Install python-steem by
conda install steem
  • The command line tools are available inside of the Anaconda Prompt and can be called by
steempy
  • The command line tools are inside AnacondaDir\Scripts, so when adding this directory and AnacondaDir to the path variable of windows, the tools are also available outside the Anaconda Prompt.

3.2. Install the development version of steem-python

  • Go to the github of python-steem
  • Clone the repository to your drive
  • Open the Anaconda Prompt ( You find it under Anaconda3)
  • Install all dependencies by:
conda install --only-deps steem
  • build python-steem by
cd <dir_of_python_steem>
python setup.py build
python setup.py install --user
  • The command line tools are not available when installing steem-python in this way.

3.3. Install steem-python with pip

  • Open the Anaconda Prompt ( You find it under Anaconda3)
  • Install all dependencies by:
conda install --only-deps steem
  • Install python-steem by
pip install steem
  • The command line tools are not available when installing steem-python in this way.

I'm managing the steem-foodstock for python-steem. In case of problems please create a new issue.

Sort:  

Congratulations! This post has been upvoted from the communal account, @minnowsupport, by holger80 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows. Please find us at the Peace, Abundance, and Liberty Network (PALnet) Discord Channel. It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.

If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: 50SP, 100SP, 250SP, 500SP, 1000SP, 5000SP.
Be sure to leave at least 50SP undelegated on your account.