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
Here’s a recommended guide on how to set up GitHub on Windows: GitHub in VS Code
Here’s a good guide on getting python working on windows: Python on Windows
Set up pipfile on windows using these commands:
py -m pip install pipenv py -m pipenv install
py -m pipenv run python your_script.pypy -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:
Install python3.13 which can be found here: Python 3.13 for MacOS
Install GitHub Desktop for MacOS: GitHub Desktop for MacOS
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.
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