How to setup a minimal python for using beempy on windows

Words
220
Reading
1 min
Listen
Play
8y

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.