Skip to content

Latest commit

 

History

History
124 lines (90 loc) · 3.24 KB

python_quick_start.md

File metadata and controls

124 lines (90 loc) · 3.24 KB

Description

Here is some information to help you start with python. This information will help new python users.

Table of Contents

Python setup

Installation of Python & Python modules

Required installations

  • python >= 3.9
  • pip
Linux (Ubuntu)

Install Python 3.9

sudo apt-get install python3.9

Install Pip

```sh sudo apt-get install python3-pip python3.9 -m pip install --upgrade pip --user ```

Windows

Download Python 3.9 (based on 3.9.13)

Installation using the wizard

  • be sure to install pip and to add Python to the environnement variables
  • you should also consider installing the Python test suite

Optional Python modules

  • pipenv: packages manager
  • pytest: Python test framework
  • pytest-cov: pytest coverage tool report
  • pylint: Python lint (static analyser for editor)

Python overview

Linux (Ubuntu)
# to display the actual version of Python used
python -V
 
# if there are several versions installed you need to specify the version  
python3 -V
python3.9 -V

# use Python pip module to install and manage Python modules
python3.9 -m pip --help

# use Python to run a specific Python script
python3.9 <script>
Windows
# to get the actual version of Python used by Windows
python -V

# to use another version call Python with full path instead of the shortcut alias (see following example)
C:\User\user_name\AppData\Local\Programs\Python\python35-32.exe

# Python pip module
python -m pip --help

# use Python to run a specific Python script
python <script>

Back to root topic: readme.md