Skip to content

Latest commit

 

History

History
112 lines (83 loc) · 3.03 KB

python_quick_start.md

File metadata and controls

112 lines (83 loc) · 3.03 KB

Python setup

Installation of Python & Python modules

Required installations

  • python >= 3.5
  • pip
Linux (Ubuntu)

Install Python 3.5.2

sudo apt-get install python3.5  
sudo apt-get install python3-pip  
python3.5 -m pip install --upgrade pip --user

Windows

Download Python 3.x (based on 3.5.2)

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.5 -V

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

# use Python to run a specific Python script
python3.5 <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