Skip to content

Instantly share code, notes, and snippets.

@dkackman
Forked from hoffmang9/Windows-Install.md
Last active April 18, 2020 22:49
Show Gist options
  • Save dkackman/442de2b3a37cfb3864fb11eb69040915 to your computer and use it in GitHub Desktop.
Save dkackman/442de2b3a37cfb3864fb11eb69040915 to your computer and use it in GitHub Desktop.
Installing Windows pre-beta-1.4

Install python 3.7 for windows 64 bit - https://www.python.org/downloads/windows/

Install git for Windows - https://git-scm.com/downloads

Install the Visual Studio 2019 redistributable for x64: https://aka.ms/vs/16/release/vc_redist.x64.exe

Right click on the PowerShell application and select Run as Administrator or search for PowerShell and choose the Administrator option.

Run the following command: Set-ExecutionPolicy Unrestricted

Close the Administator PowerShell and open a regular PowerShell

git clone https://github.com/Chia-Network/chia-blockchain.git
cd chia-blockchain
git checkout beta-1.4

Replace C:\Users\yruser\ with your windows username:

C:\Users\yruser\AppData\Local\Programs\Python\Python37\python.exe -m venv venv
. .\venv\Scripts\activate.ps1
pip3 install --upgrade pip
pip install -i https://download.chia.net/simple/ miniupnpc==2.1 setproctitle==1.1.10 cbor2==5.1.0
pip install -e .
chia init
chia generate keys
Start-Job -Name chia-node -ScriptBlock { chia start node }
# or
Start-Job -Name chia-farmer -ScriptBlock { chia start farmer }

PowerShell job control - https://gallery.technet.microsoft.com/How-to-create-background-b2a6a8ee

You can tail the logs or plot. Make sure you're in the PowerShell venv . .\venv\Scripts\activate.ps1

Get-Content ~\.\.chia\beta-1.0b4.dev62\log\debug.log -Wait
chia-create-plots -k 26 -n 1

Install node - https://nodejs.org/en/

cd .\electron-ui\
npm install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment