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.
To install git
and add it to our path:
choco install git.install -params '"/GitOnlyOnPath"' -y
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