How to setup a minimal python for using beempy on windows

in #beempy5 years ago (edited)

I worked on the scrypt wheels for windows (post). Due to my work, it is now easily possible to use beempy on windows. The setup can also be used to start small python scripts. It will not mess up with windows, as no PATH is set. Everything can easily removed.

Install python 3.7

First we will download python from https://www.python.org/downloads/
image.png

Then we Customize the Installation:
image.png

We only need pip:
image.png

Then we change the path, to find the python.exe easier:
image.png

Then we start the powershell and update pip and install virtualenv:

C:\Python37-32\python.exe -m pip install pip --upgrade
C:\Python37-32\python.exe -m pip install virtualenv

image.png

Creating a working environment

At first we create a new directory in the explorer at c:\beem
We will create a working environment:

cd beem
 C:\Python37-32\python.exe -m virtualenv env

and activate it by

.\env\Scripts\activate

image.png

Install beem

We are now able to install beem:

pip install beem

Additionally, we install cryptography to speed up signing:

 pip install cryptography

We are now able to use beempy:

beempy --version

image.png

Create a shortcut

Do a rightclick on activate.ps1 in C:\beem\env\Scripts and select Create shortcut.
Rightclick on the shortcut and then click on properties.

Change the target to:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit  "C:\beem\env\Scripts\activate.ps1"

You can now move it to your desktop and have a fast access to beempy.

Uninstall

Just delete C:\beem\env. Python itself can be uninstalled and C:\Python37-32 deleted. This should clean everything.

Using the 64 bit version of python

Everything is also working with the 64 bit version. Just replace C:\Python37-32 with C:\Python37.

Sort:  

omg man, thank you so much for this little guide, will try this soon

Posted using Partiko Android

Thank you so much for participating in the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

Hi, @holger80!

You just got a 2.57% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

You got a 31.59% upvote from @ocdb courtesy of @holger80! :)

@ocdb is a non-profit bidbot for whitelisted Steemians, current max bid is 16 SBD and the equivalent amount in STEEM.
Check our website https://thegoodwhales.io/ for the whitelist, queue and delegation info. Join our Discord channel for more information.

If you like what @ocd does, consider voting for ocd-witness through SteemConnect or on the Steemit Witnesses page. :)

Hi @holger80!

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

In our last Algorithmic Curation Round, consisting of 368 contributions, your post is ranked at #3. Congratulations!

Evaluation of your UA score:
  • Your follower network is great!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

This post has been included in the latest edition of SoS Daily News - a digest of all you need to know about the State of Steem.

That was easy. Thanks again! This means i have a python engine running and the famous beem library at my disposal!?

Now i really don't want to bother you but i dream of running and playing around with one of your github projects based on beem, e.g. your steem monster match statistics.

I am a programmer with zero knowledge of python. Will start exploring how to compile/interpret the .py files i guess. I think in name of all interested people, it would be nice to see just a few more possibilities. Doing beempy --version and getting an answer already gave a good kick compared to 30 years ago seeing the first "Hello World" but now that i am aroused, i want to know a bit more.

I'm planing to write a second post in which I explain how to setup Visual Studio Code and how to debug a python script.