Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install Chocolatey on Windows 10 | Install git and Python3 (with pip)

Install Chocolatey on Windows 10

First, you have to run Powershell as administrator. Then type the following:

Set-ExecutionPolicy Unrestricted

Accept to continue.

Then we install Chocolatey:

iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))

Try typing choco to see all the available commands.

Install Git

To install git and add it to our path:

choco install git.install -params '"/GitOnlyOnPath"' -y

Install Python 3

Using choco is really easy, just do:

choco install python -y

We need to add pip to our path.

[Environment]::SetEnvironmentVariable("Path", "$env:Path;C:\tools\python\Scripts\", "User")

Maybe you will need numpy lib. It's hard to install it from source. So we will use a wheel:

pip install -i https://pypi.binstar.org/carlkl/simple numpy

To almost any other lib you can simple use pip install, for example:

pip install simpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment