A failed attempt to install steem-python on Windows

in #steem6 years ago (edited)

Finally I decided to try out the command line of steempy to interact with Steem blockchain after being in the ecosystem for over a year. My recent personal little project needs to me to know more about the fundamental of how Steem system is working.

However, this blog is about how did I not manage to get the steempy installed successfully on Windows.

The errors I was too lazy to solve

So here is the failed procedure for the sake of recording in case I figured out the way to get around with it in the future.

Download the Anaconda for windows as suggested by the official document.

Installed the Anaconda successfully. Then open up the Anaconda Prompt and type in the command below to install steem-python.

pip install steem

Quickly, some errors poped out in my way:

Failed building wheel for ujson
Running setup.py clean for ujson
Failed to build ujson

distributed 1.21.8 requires msgpack, which is not installed.

The solution should be as easy as:

pip install msgpack
pip install ujson

Now the ujson should be fine and let's deal with the second error which is particularly exclusive in Windows platform:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

Seems like I have an outdated Microsoft Visual C++, easy, just go the official Microsoft site and get the Visual C++ Build Tools.

chrome_2018-09-29_21-04-50.png

Installed a few essential or probably bloat plugins that might not be needed in this case.

vs_installershell_2018-09-29_21-37-29.png

The installation took a while, rebooted the PC after that and sadly the errors still remains as I pip install steem once again.

Windows is a disaster for such an attempt

To be honest I have close to zero experience in development in Windows environment so it would be fair to say it sucks but at least it is not a friendly environment for steem-python.

Let's move on and try it on my Lubuntu virtual machine instead. Damn, I'm not a good sysadmin and I know it.

Sort:  

Haha even my Mac OS is easier. No much problem installing

Oh you are on MacOS huh, thought you were using Win as well.

Hi @fr3eze!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 3.964 which ranks you at #3622 across all Steem accounts.
Your rank has not changed in the last three days.

In our last Algorithmic Curation Round, consisting of 477 contributions, your post is ranked at #286.

Evaluation of your UA score:
  • You're on the right track, try to gather more followers.
  • The readers like your work!
  • Try to improve on your user engagement! The more interesting interaction in the comments of your post, the better!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64752.70
ETH 3455.13
USDT 1.00
SBD 2.50