Skip to content

Latest commit

 

History

History
54 lines (42 loc) · 4.01 KB

TUTORIAL-1.md

File metadata and controls

54 lines (42 loc) · 4.01 KB

Autoshell Tutorial (Page 1 of 2) Rocket

The first thing we need to do for Autoshell to operate properly is install a Python interpreter on our machine.

Install Python Python

  1. Install on Windows
  2. Install on MacOS
  3. Install on Linux

Windows Windows

1. If you have not yet installed Python on your Windows OS, then download and install the latest Python2 or Python3 from Python Downloads Page

  • Make sure to check the box during installation which adds Python to PATH. Labeled something like Add Python X.X to PATH

2. Once Python is installed, you should be able to open a command window, type python, hit ENTER, and see a Python prompt opened. Type quit() to exit it. You should also be able to run the command pip and see its options. If both of these work, then move on to Install Autoshell.

  • If you cannot run python or pip from a command prompt, you may need to add the Python installation directory path to the Windows PATH variable
    • The easiest way to do this is to find the new shortcut for Python in your start menu, right-click on the shortcut, and find the folder path for the python.exe file
      • For Python2, this will likely be something like C:\Python27
      • For Python3, this will likely be something like C:\Users\<USERNAME>\AppData\Local\Programs\Python\Python37
    • Open your Advanced System Settings window, navigate to the "Advanced" tab, and click the "Environment Variables" button
    • Create a new system variable:
      • Variable name: PYTHON_HOME
      • Variable value: <your_python_installation_directory>
    • Now modify the PATH system variable by appending the text ;%PYTHON_HOME%\;%PYTHON_HOME%;%PYTHON_HOME%\Scripts\ to the end of it.
    • Close out your windows, open a command window and make sure you can run the commands python and pip

MacOS MacOS

MacOS often comes with a native version of Python, but we likely want to upgrade that and install PIP. The best way to do this is with a MacOS Linux-like package manager called Homebrew. You can visit the below pages to walk you through installing Homebrew and an updated Python interpreter along with it

1. Open Terminal and run: xcode-select --install. This will open a window. Click 'Get Xcode' and install it from the app store.

2. Install Homebrew. Run: /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

3. Install latest Python2: brew install python@2

4. Install latest Python3: brew install python

5. Link your default Python path to the new install brew link --overwrite python

6. Close Terminal and reopen it. You should see Python 2.7.15 when you run python -V

7. Once Python is installed, you should be able to open Terminal, type python, hit ENTER, and see a Python prompt opened. Type quit() to exit it. You should also be able to run the command pip and see its options. If both of these work, then move on to Install Autoshell

Linux Linux

  • Raspberry Pi may need Python and PIP

    • Install them: sudo apt install -y python-pip as well as sudo apt-get install libffi-dev

  • Debian (Ubuntu) distributions may need Python and PIP

    • Install Python and PIP: sudo apt install -y python-pip

  • RHEL (CentOS) distributions usually need PIP

    • Install the EPEL package: sudo yum install -y epel-release

    • Install PIP: sudo yum install -y python-pip