Setting up GitHub and Python

This is a quick tutorial on windows for getting GitHub working in your terminal. After this guide, you should be able to run Python scripts, clone repositories, and use GitHub from the command line.

Setting up on Windows

  1. Here’s a recommended guide on how to set up GitHub on Windows: GitHub in VS Code

  2. Here’s a good guide on getting python working on windows: Python on Windows

  3. Set up pipfile on windows using these commands:

    py -m pip install pipenv
    py -m pipenv install
    
    py -m pipenv run python your_script.py
    
    py -m pipenv run your_command
    

Getting Set Up on MacOS

The process for getting GitHub and Python working on MacOS is similar to Windows, but with some differences in installation. Here are the steps:

  1. Install python3.13 which can be found here: Python 3.13 for MacOS

  2. Install GitHub Desktop for MacOS: GitHub Desktop for MacOS

  3. Go to the repository you want to clone on GitHub, and click “Open in GitHub Desktop”. This will open the repository in GitHub Desktop, where you can clone it to your local machine.

  4. Then run these commands to set up pipenv and install dependencies:

python3 -m pip install pipenv
python3 -m pipenv install

Occasionally, running this command may not work, instead, you may need to run:

python3.13 -m pip install pipenv
python3.13 -m pipenv install

or

py -m pip install pipenv
py -m pipenv install

Now you should be able to run your Python scripts with the dependencies specified in the PipFile using:

python3 -m pipenv run python your_script.py

or .. code-block:: console

python3 -m pipenv run your_command