wignition / python-random-quote

A file-based quote bot written in Python
https://lab.github.com/everydeveloper/introduction-to-python
0 stars 0 forks source link

Prepare your environment #1

Closed github-learning-lab[bot] closed 3 years ago

github-learning-lab[bot] commented 4 years ago

Before we can start writing Python, we need to make sure you have your environment set up. You just need a few things (some of which you might already have!)


Check that Python is installed

Your machine may already have Python, or you might need to install it. We also want to check that the right version of Python is present. To find out, go to your command line terminal and type: python -V

Make sure to use a capital -V or you'll get something very different. If you get an error or have a version less than 3, try this: python3 -V (again with the capital -V).

If you see your Python version displayed, you’re all set. Otherwise, you’ll need to download Python for your operating system. Make sure it's Python 3, as previous versions are deprecated.

Check that Git is installed

We’ll use a similar approach to find out if you already have git installed. From your comment line, type: git --version

If you see your Git version displayed, you’re good to go. Otherwise, you’ll need to download Git for your operating system.

Clone this repository on your local machine

Now we’re getting to the fun stuff. Let’s clone this repository to your local machine so that we can make some edits: git clone https://github.com/wignition/python-random-quote.git

You can also download or clone the repo via SSH from the main repo page.

Close this issue to continue

With your environment ready, let’s get started.

Close this issue and I’ll comment with your next steps!

wignition commented 3 years ago

2020-10-31 all done - tw

github-learning-lab[bot] commented 3 years ago

Great! I created a new issue for you.

Let's start coding!

wignition commented 3 years ago

MurcadomTechnology@TIM-AIR9-1306-17ghzi7-8gb120gb-3 ~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" Password: ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following existing directories will be made group writable: /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> The following existing directories will have their owner set to MurcadomTechnology: /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> The following existing directories will have their group set to admin: /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> The following new directories will be created: /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks ==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort ==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /usr/sbin/chown MurcadomTechnology /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1 ==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks ==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks ==> /usr/bin/sudo /usr/sbin/chown MurcadomTechnology /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks ==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks ==> /usr/bin/sudo /bin/mkdir -p /Users/MurcadomTechnology/Library/Caches/Homebrew ==> /usr/bin/sudo /bin/chmod g+rwx /Users/MurcadomTechnology/Library/Caches/Homebrew ==> /usr/bin/sudo /usr/sbin/chown MurcadomTechnology /Users/MurcadomTechnology/Library/Caches/Homebrew ==> Searching online for the Command Line Tools ==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress ==> Installing Command Line Tools for Xcode-12.1 ==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ for\ Xcode-12.1 Software Update Tool

Downloading Command Line Tools for Xcode
Downloaded Command Line Tools for Xcode Installing Command Line Tools for Xcode Done with Command Line Tools for Xcode Done. ==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress Password: ==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools ==> Downloading and installing Homebrew... remote: Enumerating objects: 52, done. remote: Counting objects: 100% (52/52), done. remote: Compressing objects: 100% (52/52), done. remote: Total 157518 (delta 3), reused 46 (delta 0), pack-reused 157466 Receiving objects: 100% (157518/157518), 40.14 MiB | 924.00 KiB/s, done. Resolving deltas: 100% (116516/116516), done. From https://github.com/Homebrew/brew

==> Homebrew has enabled anonymous aggregate formulae and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics data has been sent yet (or will be during this install run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations

==> Next steps:

Troubleshooting: brew config brew doctor brew install --verbose --debug FORMULA

Contributing: brew create [URL [--no-fetch]] brew edit [FORMULA...]

Further help: brew commands brew help [COMMAND] man brew https://docs.brew.sh MurcadomTechnology@TIM-AIR9-1306-17ghzi7-8gb120gb-3 ~ % brew install git Updating Homebrew... ==> Downloading https://homebrew.bintray.com/bottles/gettext-0.21.catalina.bottle.tar.gz ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/cdea54f52b7c36ebcb5fe26a1cf736d7cd6fd5f2 ######################################################################## 100.0% ==> Downloading https://homebrew.bintray.com/bottles/pcre2-10.35.catalina.bottle.tar.gz ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/6a1e59a5db23d684f92d2bf695601d1b466f3e9d ######################################################################## 100.0% ==> Downloading https://homebrew.bintray.com/bottles/git-2.29.2.catalina.bottle.tar.gz ==> Downloading from https://d29vzk4ow07wi7.cloudfront.net/47cffc0d84e2a273cc6088802633e1d4d1fc8afe ######################################################################## 100.0% ==> Installing dependencies for git: gettext and pcre2 ==> Installing git dependency: gettext ==> Pouring gettext-0.21.catalina.bottle.tar.gz 🍺 /usr/local/Cellar/gettext/0.21: 1,953 files, 19.0MB ==> Installing git dependency: pcre2 ==> Pouring pcre2-10.35.catalina.bottle.tar.gz 🍺 /usr/local/Cellar/pcre2/10.35: 230 files, 6.0MB ==> Installing git ==> Pouring git-2.29.2.catalina.bottle.tar.gz ==> Caveats The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the git-gui formula.

Bash completion has been installed to: /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to: /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/git ==> Summary 🍺 /usr/local/Cellar/git/2.29.2: 1,480 files, 39.7MB ==> Caveats ==> git The Tcl/Tk GUIs (e.g. gitk, git-gui) are now in the git-gui formula.

Bash completion has been installed to: /usr/local/etc/bash_completion.d

zsh completions and functions have been installed to: /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to: /usr/local/share/emacs/site-lisp/git MurcadomTechnology@TIM-AIR9-1306-17ghzi7-8gb120gb-3 ~ % git --version git version 2.24.3 (Apple Git-128) MurcadomTechnology@TIM-AIR9-1306-17ghzi7-8gb120gb-3 ~ % git clone https://github.com/wignition/python-random-quote.git Cloning into 'python-random-quote'... remote: Enumerating objects: 24, done. remote: Counting objects: 100% (24/24), done. remote: Compressing objects: 100% (18/18), done. remote: Total 24 (delta 4), reused 24 (delta 4), pack-reused 0 Unpacking objects: 100% (24/24), done. MurcadomTechnology@TIM-AIR9-1306-17ghzi7-8gb120gb-3 ~ %