Skip to content

Instantly share code, notes, and snippets.

@dewdad
Forked from lopezjurip/chocolatey-git-python3.md
Created April 23, 2021 19:39
Show Gist options
  • Select an option

  • Save dewdad/fe3ce7d727af3d5d18c2b5dec9b02fe4 to your computer and use it in GitHub Desktop.

Select an option

Save dewdad/fe3ce7d727af3d5d18c2b5dec9b02fe4 to your computer and use it in GitHub Desktop.

Revisions

  1. @lopezjurip lopezjurip renamed this gist Aug 19, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @lopezjurip lopezjurip revised this gist Aug 19, 2015. No changes.
  3. @lopezjurip lopezjurip revised this gist Aug 19, 2015. No changes.
  4. @lopezjurip lopezjurip revised this gist Aug 19, 2015. No changes.
  5. @lopezjurip lopezjurip revised this gist Aug 19, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -42,4 +42,5 @@ pip install -i https://pypi.binstar.org/carlkl/simple numpy
    To almost any other lib you can simple use `pip install`, for example:
    ```sh
    pip install simpy
    ```
  6. @lopezjurip lopezjurip created this gist Aug 19, 2015.
    45 changes: 45 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,45 @@
    # Install Chocolatey on Windows 10

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

    ```s
    Set-ExecutionPolicy Unrestricted
    ```
    Accept to continue.

    Then we install Chocolatey:
    ```sh
    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:
    ```sh
    choco install git.install -params '"/GitOnlyOnPath"' -y
    ```


    ### Install Python 3

    Using choco is really easy, just do:
    ```sh
    choco install python -y
    ```

    We need to add `pip` to our path.
    ```sh
    [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`:
    ```sh
    pip install -i https://pypi.binstar.org/carlkl/simple numpy
    ```
    To almost any other lib you can simple use `pip install`, for example:
    ```sh
    ```