Installing an IDE for Windows

Installation Video (in Finnish)

Python-ohjelmointiympäristön asentaminen Windows-ympäristöön

Installing Python

First step is to install Python itself. Navigate to Pythonin site and download the latest version.

Run the downloaded exe file.

../_images/pythonexe.PNG

Choose Install Now so the installation executable can take care of everything. In some cases it is better to customise your installation. If you know what you are doing, do so.

../_images/installpython1.PNG

Python is now installed on your computer and you can move to install the IDE.

Installing PyCharm

Notice, that PyCharm is already installed on the Windows Workstations, and the only thing you need to do is to save your projects on the Z-folder so they’ll be available on all computers.

../_images/pycharm-location2.PNG

Navigate to PyCharm website and download the Community Edition.

../_images/download-pycharm.PNG

Run the downloaded exe file.

../_images/run.PNG

Choose your preferred settings.

../_images/installation1.PNG ../_images/installation2.PNG ../_images/installation3.png

Run PyCharm

../_images/welcome.PNG

Choose your preferred theme.

../_images/teema.PNG

Choose your preferred plugins.

../_images/plugarit.png

Create a new project and add a new file to this project.

../_images/newfile.PNG

Alternatively you can import files to PyCharm by going to Open, and choosing a template folder or a file.

../_images/importproject.png

Write some code.

../_images/helloworld.PNG

Installing Plugins in PyCharm

Plugins offer extra functionality in addition to Python’s default packages. Next we will install plugins numpy and scipy. Installing is easiest by clicking the Terminal button on PyCharm and then writing pip install <plugin name>, so in our case pip install numpy and pip install scipy.

../_images/pip.PNG

Succesful install looks like this:

../_images/numpyscipyasennettu.PNG

In addition to terminal, plugins can also be installed with a graphical user interface. Choose File -> Settings

../_images/settings.PNG

In Settings choose your project and subsection Project Interpreter

../_images/projectinterpreter.PNG

In Project Interpreter menu, press the + button oto open Available Packages menu.

../_images/install.PNG

Write numpy in to the search box, and press the Install Package button to install plugin.

../_images/availablepackages.PNG