Setup instructions for Windows 10. All scripts are
PowerShell
.
In PowerShell as Administrator:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
This will allow you to execute PowerShell scripts locally on your machine.
In PowerShell as Administrator:
Set-ExecutionPolicy AllSigned
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
Close and reopen PowerShell after that.
In PowerShell as Administrator:
choco config set cacheLocation C:/ChocoCache
choco upgrade chocolatey
This is needed for the C++ compiler. Install Visual Studio 2017 Community Edition.
During installation select C++ desktop development and latest Windows 10 SDK.
After installation open Visual Studio and check for updates. Install the latest 2017 version that is available.
Install via Chocolatey. In PowerShell as Administrator:
choco uninstall cmake
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
Install via Chocolatey. In PowerShell as Administrator:
choco install ninja
Update $env:PSModulePath
so that you can use PowerShell modules.
In PowerShell as Administrator:
[Environment]::SetEnvironmentVariable("PSModulePath", "$HOME/Documents/WindowsPowerShell/Modules;" + $env:PSModulePath, "Machine")
In PowerShell as Administrator:
Install-Module VSSetup -Scope CurrentUser
Test. Close and reopen PowerShell:
Get-VSSetupInstance `
| Select-VSSetupInstance -Version '[15.0,16.0]' `
| Select-Object -ExpandProperty InstallationPath
This finds the installation path for Visual Studio 2017.
This will become your system wide Python 3 installation. For projects use venv
module (Python 3 ) to configure projects and install dependencies.
In PowerShell as Administrator:
choco install python3 --force --params '"/InstallDir:C:\tools\python3"'
Install pip3 and easy_install:
C:\tools\python3\python.exe -m ensurepip --default-pip
Create python3.exe
symbolic link:
New-Item -ItemType SymbolicLink -Path C:\tools\python3 -Name python3.exe -Target C:\tools\python3\python.exe
Add to PATH:
[System.Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\tools\python3;C:\tools\python3\Scripts", "Machine")
Close and reopen PowerShell to refresh PATH.
Download and install from Visual Studio Code site.
Open Visual Studio Code and press Ctrl + Shift + p
. Select Shell Command: Install 'code' command in PATH
.