# Installatie

# pip

Voor Python is veel software beschikbaar als package. Je kan die eenvoudig installeren met de package manager pip (opens new window) van de PyPA (opens new window).

# Update pip

$ python3 -m pip install --upgrade pip

# Help

$ python3 -m pip --help

# List packages

$ python3 -m pip list

# Install packages

Packages kan je vinden op de Python Package Index (opens new window).

# Uninstall packages

$ python3 -m pip uninstall «packetnaam»

# Packages

# Colored

Colored (opens new window)

$ python3 -m pip install --upgrade colored

# Django

Django (opens new window) is het populairste webframework voor Python.

$ python3 -m pip install --upgrade django

# Flask

Flask (opens new window) is een lichtgewicht webframework voor Python waarmee je WSGI’s kan maken.

$ python3 -m pip install --upgrade flask

# Matplotlib

Matplotlib (opens new window) is een plottingbibliotheek die sterk geïnspireerd is op het commerciële pakket MATLAB.

$ python3 -m pip install --upgrade matplotlib

# mypy

mypy (opens new window) optionele static type checker.

$ python3 -m pip install --upgrade mypy

# Gebruik

$ python3 -m mypy «url»

# Voorbeelden

$ python3 -m mypy ./src/python
$ python3 -m mypy ./src/python/hello.py

# NumPy

NumPy (opens new window) is reeds meegeïnstalleerd met Matplotlib.

$ python3 -m pip install --upgrade numpy

# pycodestyle

pycodestyle (opens new window) controleert of de code voldoet aan de PEP 8 (opens new window)-standaard.

$ python3 -m pip install --upgrade pycodestyle

# Gebruik

$ python3 -m pycodestyle «url»

# Bijvoorbeeld

$ python3 -m pycodestyle ./src/python
$ python3 -m pycodestyle ./src/python/hello.py

# SciPy

SciPy (opens new window)

$ python3 -m pip install --upgrade scipy
© 2024 Arteveldehogeschool Laatst bijgewerkt: 14/2/2020, 11:07:52