Different Ways of Working with Python on Windows

0 25
Avatar for MichaelLehmann
3 years ago
  1. Install Python from Microsoft Store or directly from the Python Website

On a Windows pc there are several ways of working with Python. The traditional way is installing Python from the website https://www.python.org/downloads/. After downloading the installation file the installation on a Windows system is pretty straightforward. Alternatively we can type "python3" in the Powershell command prompt and it will automatically bring up the Microsoft Store app from where Python can be installed easily.

Once Python installation is complete there will be a folder dedicated to Python files somewhere on the harddrive like C:\Python. By adding the exact address of the Python executable to the PATH environment variable we can have access to Python from any folder using Windows Powershell or the command prompt.

Python can be called from Windows Powershell as follows:

PS C:\USER> python3 filename.py

whereby "filename.py" is the file that contains the Python 3 source code.

  1. Install Anaconda Individual Edition

A comprehensive Python environment with different tools like the Spyder editor or the Jupyter notebook can be created by installing the Individual Edition of Anaconda from this website https://www.anaconda.com/products/individual.

  1. Google Colab

This is a cloud based solution that could be used for small projects.

https://colab.research.google.com/

For projects that require high levels of computing power this service is not free of charge.

  1. Windows Subsystem for Linux (WSL)

WSL installs a complete Linux kernel alongside Windows such that it is possible to install programs that normally only function under Linux. However the process of making graphical applications work under WSL is cumbersome to say the least.

1
$ 0.00
Avatar for MichaelLehmann
3 years ago

Comments