You are on page 1of 9
Windows Python Environment Install and Setup Patrick Morrow Email: pmorrow@cse.unl.edu If you already have python installed on your computer, I recommend getting the latest. ‘Some programs that will work on old versions of python will not work on the new versions. The web grader uses the newest version so to avoid issues, the latest version is recommended. Step 1: Download and Install Python 1. Download the latest python version from here: https://www.python.org/downloads, (Note: At the time this tutorial was made, the latest was 3.7.2. You can download the latest version or use any version that works for you.) 2. Install for all users and add to path - Make sure both boxes are checked. Install Python 3.7.2 (32-bit) sy wind 3. Install - Click “Install Now” Install Python 3.7.2 (32-bit) @ 2 spe el ‘ro 4 put uanunon wn wind Brsereensr mm oe ot — 4. Disable path length - Make sure you disable the path length limit. If python was installed in a directory with a path length greater than 260 characters, adding it to the path could fail } Setup was successful Sec hanks o Mat Hanan that whom yrs of ‘oy ard windows eerce Pon Vos wuld file fonterb0s le path ent eit pyth windows a 5. Close the window. Step 2: Download and Install PyCharm 1, Download PyCharm from here: https://www.jetbrains.com/pycharm/download/#section=windows 2. Download ~ Choose the Community version and click “download”. After the installer downloads, open the installer. 3. Start the installer — Click next to continue Welcome to PyCharm Community Edition Setup Setup il ga you rough he eaten of Cam ermone eo my Click next to continue = Se. ran moe conn ten ie low a ol a. 5. Create desktop shortcut and create association — If you would like a PyCharm desktop shortcut, you can add it here. You may or may not have a choice between a 32-bit or 64-bit launcher. If there is only one option, then choose that option, Otherwise, you can figure out which is best for your computer by following this short guide: https://www.howtogeek.com/howto/21726/how-do-i-know-if-im-running- 32-bit-or-64-bit-windows-answers/ Additionally, | recommend creating an association so all .py files will open with PyCharm. Also, check “Add ‘Open Folder as Project” ‘nstalinion Options ‘org your ye Caren te aan Taner Update ATH aril mde) ad cer riot faTH haat open ote rjc Qn (Clooney 6. Install - Click install ae Choose Start Menu Folder (Choose a Stmrt Menu folder forthe FyCharm Community Edison shorts. Solectthe Start Menu fldar in vinich you would ike to create the program's shorteuts, You an alo enter @ name to create a new Toler. rap ecwssbiity Accessories ‘Admusranve Tocls lor 12.0602 Bud 263 ‘ere 12.052 Bud 263 (Copy 2) Android Stoo ‘asian luctooth Caco Cygwin oat fale] Fee 7. Finish ~ Click Finish ‘Completing PyCharm Community Edition Setup ‘lay anny na tr (Cn mener commune Eon zea ma] ea Step 3: PyCharm Setup 1. Open PyCharm and Create a New Project. 2. Name the project “csce100” and make sure the base interpreter is set under the Project, interpreter dropdown. Then, click “Create”. 3. To get yourself ready for the first assignment, right click on the project, hover on New, and select Directory. Name the new directory “assignment.” 4. Download the test.py file from canvas under Files > “Python Installation Instructions”. 5. Move the test.py file to your new “assignment” folder and open the file in the PyCharm editor. 6. To make sure that everything is set up correctly, run the test.py file. To run the file, right click in the editor window and select “Run” recommend playing around with PyCharm and getting familiar with the IDE (Integrated Development Environment). Google “PyCharm instructional guides”, watch YouTube videos on using PyCharm, etc. If you run into any issues, feel free to email me and | will work with you to resolve any issues. My email is: pmorrow@cse.unl.edu.

You might also like