Skip to content

Instantly share code, notes, and snippets.

@lopezjurip
Last active September 15, 2023 02:38
Show Gist options
  • Star 9 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save lopezjurip/2a188c90284bf239197b to your computer and use it in GitHub Desktop.
Save lopezjurip/2a188c90284bf239197b 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