Skip to content

Instantly share code, notes, and snippets.

@hoffmang9
Last active April 22, 2020 06:55
Show Gist options
  • Save hoffmang9/334ede1cabb3ce44e55f8f51c1a8be00 to your computer and use it in GitHub Desktop.
Save hoffmang9/334ede1cabb3ce44e55f8f51c1a8be00 to your computer and use it in GitHub Desktop.
Installing Windows pre-beta-1.4

Here are the new Windows install instructions as of 2020-04-21 00:30 PDT:

For beta3 chain compatibility: Download and Run https://download.chia.net/beta-1.4-win64/chia-0.1.8.exe (current at 2020-04-20-0930 PDT)

For pre-beta4 chain compatibility: Download and Run https://download.chia.net/beta-1.4-win64/chia-0.1.9.exe (current at 2020-04-21-0030 PDT)

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

cd '~\AppData\Local\Programs\Chia Network\Chia Blockchain\'
.\install.ps1

That last command will install the final step and leave you in the venv for PowerShell.

chia init
chia generate keys
Start-Job -Name chia-node -ScriptBlock { chia start node }
# or
Start-Job -Name chia-farmer -ScriptBlock { chia start farmer }

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

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

Click on the Desktop "Chia Wallet" icon or the Chia Wallet icon in "Recently Added" at the top of the Start Menu for the Wallet GUI.

Was:


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 .
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 LTS - https://nodejs.org/en/ You will want to use a new PowerShell for this.

cd chia-blockchain
. .\venv\Scripts\activate.ps1
cd .\electron-ui\
npm install --runtime=electron --target=1.7.6
cd ..
npm run --prefix ./electron-ui start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment