How to Pull Down a Python Script from Github
This entry will cover how to pull down a script generated by MakeShopPro from github. See the youtube channel for specific scripts and what they do: MakeShopPro Youtube Channel
You'll need to Install Python, before doing the following steps.
This entry will cover how to pull down a script generated by MakeShopPro from github. See the youtube channel for specific scripts and what they do: MakeShopPro Youtube Channel
You'll need to Install Python, before doing the following steps.
Github
- Click on the link provided by the youtube video (for this example you can use this script)
- From the github page, find the *.py file and click on it. In the example below, click on the PhotoMosaic.py
- To download the script right-click on the [Raw] button and select Save Link As...
- Choose a location to save the script.
Install Libraries
Sometimes scripts require extra libraries/modules to be installed for them to run. Most of the libraries (but not all) come with the Python install. If the video calls out an extra script to be added the following procedure is how to install them.
- Open a command prompt (doesn't matter the location)
- Enter the command: pip install <name of library>
- So for example, to install the Imageio library the command would be:
- pip install imageio
- If you were missing the library, it would begin to install
- If you already had the library, something like the following would be displayed:
Run the Script
All scripts should be accompanied by a Readme.txt which will provide instructions on how to run the script. Often times you'll need to call the script with some parameters passed in. All scripts can be run from within the command prompt window.
Comments
Post a Comment