Skip to content

Instantly share code, notes, and snippets.

@2ajoyce
Created August 19, 2018 17:19
Show Gist options
  • Save 2ajoyce/6edbcb7aafadcb739521a0c98ffa89ca to your computer and use it in GitHub Desktop.
Save 2ajoyce/6edbcb7aafadcb739521a0c98ffa89ca to your computer and use it in GitHub Desktop.
RelaxPy Setup Instructions

Setup Instructions

NOTE: Skip straight to step 6 if you have already installed python2.7.

  1. Install chocolatey Run this in a cmd prompt window. Make sure to right click the icon and use "Run as administrator" @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

  2. Open a new admin command prompt

  3. Install python

    • This step will use chocolatey to install python2 and python3 on your computer.
    • Python3 isn't required, but imo it's nicer to work in. Their code is written in python2
    • Python3 cannot run python2 code so you'll need to have python2 installed.
    • Run choco install python2 python -y to get python2 and python3
    • Run choco install python2 -y if you only want python2
  4. Refresh environment variables by running refreshenv in the command prompt

  5. Update pip by running python -m pip install --upgrade pip in the command prompt

  6. Install packages by running pip install matplotlib numpy scipy in the command prompt

  7. Run the program

    1. Open a command prompt in the directory where the program is located (doesn't need to be admin)
      1. This command will get you to your desktop: cd %USERPROFILE%/Desktop
      2. cd .. will navigate up a directory
      3. cd folder_name navigate into that folder
      4. dir will display the contents of the folder you're currently in
      5. tab will autocomplete most names most of the time
    2. Run this command to test if you're in the right spot and everything is working: python RelaxPy-v01.py Example.txt Output.csv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment