Skip to content Skip to sidebar Skip to footer

Download Python 3.6.4 Mac Updated

Download Python 3.6.4 Mac

There is nothing formal to plough in for this Lab, and no grade will be given. However, this is an opportunity to come to ensure that y'all have Python, PyCharm, and PyGame installed and working properly on your laptops. If you do not come up to lab, we will assume you lot accept taken intendance of this yourself and you are ready to go when nosotros start coding in lecture side by side calendar week. So, if you have any doubts, come up to lab, meet some of the TAs, and brand sure you're computer is setup and prepare to get!

Installing

on Windows

  1. Install Python three.6.4 (If you accept a different version of Python, you still must install three.vi.4 seperately!):

    1. Download the executable x86-64 installer from python.org.

    2. Run the installer.

    3. Choose the "Custom Installation" option.

    4. If asked, check "Add Python to environs variables" and "Install for all users"; leave all other options at their default values.

  2. Install PyCharm Community Edition 2020.2.i:

    1. Download the executable installer from jetbrains.com.

    2. Run the installer.

    3. If asked, cheque "Create associations" - ".py"; exit all other options at their default values.

  3. Gear up PyCharm and PyGame; run into the cross-platform data beneath.

on Mac

  1. Install Python three.6.iv (If you have a different version of Python, you still must install 3.half dozen.4 seperately!):

    1. Download the installer from python.org.

    2. Run the installer.

    3. Choose the "Custom Installation" choice.

    4. If asked, bank check "Add together Python to environment variables" and "Install for all users"; leave all other options at their default values.

  2. Install PyCharm Community Edition 2017.3.2:

    1. Download the dmg disk paradigm from jetbrains.com.

    2. Drag the icon to the Applications folder.

  3. Install prerequisites for PyGame

    1. Download and install XQuartz - https://dl.bintray.com/xquartz/downloads/XQuartz-two.vii.eleven.dmg.

    2. Open a Last window (/ApplicationsUtilitiesFinal). In the last window, paste the following commands in one at a time and run them individually:

      1. xcode-select --install
      2. ruby -e " $( curlicue -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) "
      3. allonym brew=/usr/local/bin/brew
      4. mash install sdl sdl_image sdl_ttf smpeg portmidi libogg libvorbis
      5. brew install sdl_mixer libvorbis (Note: If this line doesn't piece of work, try brew install sdl_mixer, merely this terminal command is optional. Feel free to skip it if information technology is causing bug.)
    3. In the Finder, open up /ApplicationsPython 3.6 and double-click on the icon for Install Certificates.command

  4. Set upwards PyCharm and PyGame; come across the cross-platform information below.

On Other Systems

If you are using a system other than Windows or Mac (Linux, FreeBSD, Haiku, etc.), beginning off, salubrious! In general, installing Python, PyGame, and PyCharm is pretty straightforward on these systems (download the Linux version of PyCharm even if yous are using a BSD or the similar), but if you take problem mail what system you are using on Piazza and we'll aid get you prepare.

Set up up PyCharm and PyGame

At that place's a fair bit of set-up, merely you should only take to do this once.

  1. Run PyCharm

  2. Accept the default options in the various screens that pop upward asking yous to ready upwardly various aspects of PyCharm. These should simply appear the first time yous run PyCharm.

  3. When yous reach the welcome screen,

    PyCharm welcome screen

    set PyGame and how Pycharm interacts with Python doing the following:

    1. In the "configuration" carte (gear icon), select "Settings" (this is chosen "Preferences" if y'all are using a Mac).

    2. Go to the "Project Interpreter" option on the left of the screen.

      Project interpreter options
    3. If the "Project Interpreter" drop-down on the pinnacle of the screen has a "Python 3" of some kind, select it and skip the indented steps below; otherwise

      1. Click the gear icon beside the drop-downwards (summit-right corner of the window) and select "Add Local…" from the menu

      2. In the pop-upwardly window, on the left chose "System Interpreter"

      3. In the drop-downwardly, pick python3.6 if it is present; if non, click the "…" push and detect where you installed Python.

        Project interpreter choice
      4. Click OK

    4. Click the green + either to the top right or bottom left of the list of packages

      Project interpreter options
    5. In the popular-up window, type pygame in the search bar, select "Pygame" in the left-hand list, and click "Install Package"

      PyGame installation
    6. Wait until an "installation successful" message appears

    7. Click "Apply" and "OK" in each window until back in the welcome screen

      Welcome screen
  4. Click "Create New Project"

  5. In the new projection window

    1. Set up the Location to some place you lot can find in your Os's file browser; suggested:

      • Windows: C:\Users\ your-user-name-on-your-figurer \Desktop\cs1110
      • OS Ten: /Users/ your-user-proper name-on-your-computer /Desktop/cs1110
    2. Expand the "Project Interpreter" with the trivial triangle and option the "Existing Interpreter" pick, with Python 3.half dozen every bit the interpreter.

      New projection setup window
    3. Click the Create button

  6. Create a new Python file by right-clicking (command-click if you only take i button) on the cs1110 folder in the Projection pane on the left side of the window, and then pick New → Python File

    New file menu
  7. Type setup_test.py in the new file pop-up

    New file popular-upwards
  8. In the editor window, blazon or paste the following:

                                                                              import                    pygame                                                          import                    urllib.request                                                                                              pygame.init()                                      urllib.asking.urlopen('https://cs1110.cs.virginia.edu')                                                                                                                  print('How-do-you-do, globe!')                              
  9. Right-click in white space in the editor window (not on any text) and select "Run setup_test" from the drib-down carte.

    Run carte du jour
  10. If you lot meet "How-do-you-do, world!" in the second line of the bottom of the window, everything is ready up correctly!

    Desired run results If this does non work correctly, remove the 's' from 'https://….', employ urllib.asking.urlopen('http://cs1110.cs.virginia.edu')

    If you lot see something else, or if something went wrong along the way, ask a TA for help.

Download Python 3.6.4 Mac

Posted by: pearsonstorid.blogspot.com

Post a Comment for "Download Python 3.6.4 Mac Updated"