How to Install chia-dev-tools on Windows 10

 

How to Install chia-dev-tools on Windows 10 - A Walkthrough

Posted on April 5, 2022 by Steve Stepp
#chia #xch #cryptocurrency #windows10 #python #chialisp #chia-dev-tools #powershell

How to Install chia-dev-tools on Windows 10

  1. Install Python from Microsoft Store: https://www.microsoft.com/store/productId/9PJPW5LDXLZ5

  2. Install C++ Build Tools : https://visualstudio.microsoft.com/visual-cpp-build-tools/
    I just checked every build tool offered.

  3. Open Powershell as Administrator (right-click icon choose Run as Administrator)

  4. Change the Execution Policy:
    PS C:\WINDOWS\system32> Set-ExecutionPolicy -ExecutionPolicy Unrestricted
    
    
  5. Create a folder for your project.
    mkdir C:\Users\Steve\Documents\ChiaProjects\FirstTest
    
    
  6. Change directory into your new folder
    cd C:\Users\Steve\Documents\ChiaProjects\FirstTest
    
    
  7. python -m venv venv
    
    
    This will take a little bit of time, be patient.

  8. Activate the python virtual environment.
    ./venv/Scripts/activate
    
    
  9. Then run the installation for the chia-dev-tools
    (venv) PS C:\Users\Steve\Documents\ChiaProjects\FirstTest> pip install chia-dev-tools
    
    
  10. Add install location into Path environment variable.
    Start • Settings • System • About • Advanced system settings • Environment Variables • System Variables • Path • Edit • New

    C:\Users\steve\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Scripts


    Note: I had to do a search for the cdv.exe file in File Explorer to determine the location to use.

  11. Restart computer.

  12. Relaunch Powershell as Adminstrator.

  13. Change into your project directory and check the version.
    cdv --version
    
    

I hope you had fun and find this useful.

Feedback is always welcome.






Want to help support?

Comments

Popular posts from this blog

My Plotting Builds for Chia

Digging Deep into Chia Network

How to setup a Chia Harvester