Community post
Steem Python Package - How do I install?
Hello fellow programmers, I am new to python and its IDE and need your help. I am wanting to install the python package for steem. I attempted to follow the instructions from the steem docs , but it wasn't very useful.
I also went to stack overflow to find a solution but it wasn't helpful or I just simply didn't understand. I continued searching various other websites and now I ran across the error in the screenshot below.

I am lost as to what must be done to correct it. Any tips are appreciated
Replies (6)
so,
"pip install steem"
didn't work for you? Did you get any error msg? If so, what kind?
What python version are you using, what operating system?
Thanks for replying. The only error message I received is what I showed you. That was after I did "pip install steem". It looks like the coding in whatever file it was trying to open had several syntax errors.
I'm on W10 and I have the latest python 3.6 from python.org
Sorry for late reply. I'm not getting reply notifications for some reason.
So error is coming from visual studio. Are you trying to install pip within it? I would try to install it directly from console. Also, look into virtual environments, that way you have everything in containers. Did you try to update pip first? (pip install --upgrade pip)
On top of my head, I would:
1 - reinstall python
2 - update pip
3 - reinstall visual studio
4 - create venv (virtual environment built in Python)
5 - install steem library inside venv
To install venv (I will show you how to create it for your one project) say you will work on python script in a folder named steemtest so you will create folder at c:\steemtest
Now go inside that folder and in windows console type this:
python -m venv ./venv
Upper command is for Linux, you may need to change something for Windows, the "./" part maybe to "."? See which of the three commands bellow works:
python -m venv .\venv
python -m venv \venv
python -m venv c:\steemtest\venv
Or search on the internet to see example for windows.
What you are doing is, inside your project (c:\steemtest) you will have new folder (c:\steemtest\venv) where will be your virtual environment for that project.
Then you will activate it from console, again, my example is for Linux, find change for windows:
source ./venv/bin/activate
and once activated you will run pip install steem and every other library you need inside it. That way you only install libraries you need for your project. Right now they are installed all together inside your system and there is a chance some interfere with each other.
Thanks, I'll give it a shot over the weekend and see if it helps.
Wau, I didn't deserve what you sent, you didn't have to do this.
I will be away from computer until sometime Sunday. I will then see if I can find anything more about it. Unfortunately I haven't have Windows for a long time and I'm a little bit rusty with them. Also, I'm making first baby steps in Python, so not much help here either.
That being said, there is one more thing you can do. If you install Anaconda, you get huge package already pre-installed and it is all wrapped independently in another virtual environment, Anaconda's environment. With anaconda you get also it's own Python version, so whatever may be wrong with your current Python, you may be able to solve with Anaconda. While Anaconda comes with a lot of all kind of scientific packages already preinstalled (matplotlib, scipy, pandas, numpy... ) you will still need to install steem libraries. Anaconda comes with it's own IDE named Spyder, but I like free PyCharm better. I'm telling you this if you don't get Visual Studio properly working.
Anyway, here is anaconda:
https://www.continuum.io/downloads
and here is PyCharm: (download free community edition, unless you are student in USA, and you have 'edu' email, then you can get commercial version.
https://www.jetbrains.com/pycharm/download/
Did you get it to work?