Skip to content

Instantly share code, notes, and snippets.

@dmi3mis
Forked from lopezjurip/chocolatey-git-python3.md
Created September 8, 2017 05:23
Show Gist options
  • Save dmi3mis/94bdac6f0055d7785701890d8d34cbd0 to your computer and use it in GitHub Desktop.
Save dmi3mis/94bdac6f0055d7785701890d8d34cbd0 to your computer and use it in GitHub Desktop.
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