1. Install the latest version of Python 3 using the following link: https://www.python.org/downloads/ and clicking ‘Download Python 3.X’. (NOTE: do NOT download Python 2.X—many of the instruction in this and proceeding tutorials will not work with Python 2.X). 2. Download the file ‘Python_Modules_32b.zip’ or ‘Python_Modules_64b.zip’ provided with this tutorial. Download the first if you’re using a 32-bit operating system or the second for a 64-bit operating system (you can find this information under “System” in the control panel). Unzip the folder and save it somewhere like “Downloads” or “Documents”. 3. You will need to install these modules on your computer through the command line terminal. In order to access the Python scripts in the command line terminal, you will need to change your operating system’s environment variable (PATH). Edit PATH by going to the following menu: Control Panel > System > Advanced System Settings > Advanced > Environment variables. Select PATH (under User variables) and click on Edit and add C:\Python34;C:\Python34\Scripts; to the end of the list. (NOTE: do not remove the existing text). Click ‘OK’ and exit from the control panel. 4. Open a command line by pressing Win + R, typing cmd.exe, then clicking ‘OK’. 5. Now you have to navigate to the folder in which the modules have been saved. By default your location will be C:\Users\YourUserName. Use ‘cd Documents’ or ‘cd Downloads’ (for example) to navigate to the folder in which the modules have been saved. You can use ‘cd ..’ to go back to the parent folder. Continue to navigate until you’re in the folder with the three module (.whl file extension). 6. You can now install these modules one at a time using the program ‘pip’, which is a module manger that comes with Python. Install the first module (numpy) by typing ‘pip install’ followed by the name of the file. To save time and prevent spelling errors, you can type the first few letters of the file name then press tab to auto-complete the file name. I also recommend using auto-complete as it will add syntax characters when needed (in this case quotation marks since the file name contains special characters like ‘+’). The command should look something like this:
7. Repeat step 6 for the other three module files.
8. To double check that these modules have been installed correctly. Open the program called IDLE that came with Python. This is an IDE (integrated development environment) that allows you to execute Python instructions. In the command line type the ‘import numpy’ then press enter. Next, type ‘import scipy’ then press enter. Next, type ‘import matplotlib’ then press enter. Finally, type ‘import pyglet’ then press enter. If no errors are thrown following these commands then everything has been set up properly and you’re good to go!
Python Programming Reference Guide: A Comprehensive Guide for Beginners to Master the Basics of Python Programming Language with Practical Coding & Learning Tips
Python Programming: 8 Simple Steps to Learn Python Programming Language in 24 hours! Practical Python Programming for Beginners, Python Commands and Python Language